XcodesOrg / xcodes

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

xcodes install --path should not require authentication #146

Closed fkorotkov closed 3 years ago

fkorotkov commented 3 years ago

When installing from a local *.xip there is no need to require username and password.

fkorotkov commented 3 years ago

My bad, my issue was that I provided a relative path:

xcodes install 12.5 --path Xcode_12.5.xip

And was getting Missing username or a password. Please try again.

Jack12816 commented 3 years ago

Hey! I can reproduce your issue, even with your working example. Just for the records in case somebody stumbles again over this like me, this is how it works:

# Broken (relative)
sh-3.2# xcodes install 12.4 --path 12.4.xip
You must sign in to https://appstoreconnect.apple.com and acknowledge the Apple ID & Privacy agreement.

# Broken (relative)
sh-3.2# xcodes install 12.4 --path ./12.4.xip
You must sign in to https://appstoreconnect.apple.com and acknowledge the Apple ID & Privacy agreement.

# Working (absolute)
sh-3.2# xcodes install 12.4 --path /var/root/Library/Caches/12.4.xip
(2/6) Unarchiving Xcode (This can take a while)
[..]