Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme isn't loading in Xcode when installing swift package #2252

Closed
jpvajda opened this issue Apr 19, 2022 · 8 comments
Closed

Readme isn't loading in Xcode when installing swift package #2252

jpvajda opened this issue Apr 19, 2022 · 8 comments

Comments

@jpvajda
Copy link
Contributor

jpvajda commented Apr 19, 2022

Steps to reproduce

Follow the installation iOS instructions found here and chose the swift package manager install. when viewing the apollo-ios readme, notice it doesn't load.

Screen shot

Screen Shot 2022-04-18 at 6 37 43 PM

Expected

Readme loads and is viewable.

@adil-hussain-84
Copy link

Why was this issue closed? I still see the "Unable to load the Read Me" text for this package in the "Add Package" window in Xcode.

@calvincestari
Copy link
Member

What version of Xcode are you using and which version of apollo-ios are you targetting? I cannot replicate this issue, the README content displays as expected.

@calvincestari
Copy link
Member

When you search for the apollo-ios repo to add what version does Xcode automatically target? I've seen that before the 1.0.0 release it would automatically select 0.9.0 instead of 0.53.0. I wonder if this is a similarly related Xcode bug?

@AnthonyMDev
Copy link
Contributor

I'm just not sure what we can do to fix this, or even debug it... It's likely this is an Xcode bug.

@adil-hussain-84
Copy link

adil-hussain-84 commented Oct 20, 2022

Thanks for the responses 👍 I was just curious as to whether somebody has found the root cause of this issue and a workaround because I'm experiencing it for a Swift package that I've published. I'm experiencing it for the apollo-ios package as well. See screenshot below. I'm experiencing this issue in Xcode versions 13.4.1 and 14.0.1.

Xcode Add Package Dependency Screenshot

Thread #716672 in the Apple Developer Forums describes the problem nicely. Sadly, that thread has plenty of upvotes but no answers.

@calvincestari
Copy link
Member

I don't have any idea why this is happening unfortunately.

@kibotu
Copy link

kibotu commented Apr 26, 2024

Xcode won't display README for Swift Packages on PRIVATE repos.

It's really as simple and dumb as that.

While the package manager finds and loads your package just fine from private repos, the element displaying the repo operates under the assumption that the README can be read without authentication.

@calvincestari
Copy link
Member

@kibotu that would be understandable if apollo-ios were a private repo, but it's not. You wouldn't be able to post a comment here if it were.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants