XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.66k stars 122 forks source link

Downloads 30kb XIPs #199

Open pocketpixels opened 2 years ago

pocketpixels commented 2 years ago

I just installed xcodes (using homebrew) and tried installing Xcode 13.4. However it only downloads a 30kb XIB file, without reporting any error. Installing obviously fails. I updated aria2 to the latest version. I tried downloading with --no-aria2. I tried downloading a different Xcode version (13.3). Same problem with all of those.

I am attaching the downloaded 30kb file (zipped so that Github accepts it): Xcode-13.4.0+13F17a.xip.zip

pocketpixels commented 2 years ago

Don't know if it is relevant, but I did not use my main Apple ID to authenticate (and I won't), but one that only has the Developer role in AppStoreConnect.

MattKiazyk commented 2 years ago

@pocketpixels shouldn't matter as long as it's an Apple Developer account

Can you try to xcodes signout first, and re-login again? How's your disk space?

pocketpixels commented 2 years ago

I just tried signing out and back in, but it made no difference. Free disk space is a lot more than 30kb, 130GB free currently.

pocketpixels commented 2 years ago

It turns out the issue was with the account I was using. I finally tried logging in with that account (which I don't typically use) and try to access https://developer.apple.com/download/, and it turns out I needed to accept the Developer Agreement terms and conditions.

Screen Shot 2022-06-03 at 5 12 53 PM

After that downloading using xcodes seems to be working fine.

@MattKiazyk I'll leave it to you to close this issue or not. If there is a way to detect this condition it would be nice to present an error message and instructions to the user instead of just downloading a 30kb file and reporting success.

MattKiazyk commented 2 years ago

I thought I had this case but I guess it's not fully covering it.

No keep it open. Hopefully my account will get that scenario soon and I can debug.

Thanks for letting me know

pocketpixels commented 2 years ago

I think you should be able to test this by adding a new "Developer" role user to your dev account, under "Users and Access" in App Store Connect.