xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Cannot install Xcode 14.3 on macOS Monterey 12.6 #474

Closed selundqma closed 1 year ago

selundqma commented 1 year ago

Made sure /Users/ec2-user/Library/Caches/XcodeInstall was empty.. then:

xcversion update xcversion list (14.3 listed at the bottom of the output) xcversion install 14.3

...

2023-04-05 12:27:04.857 xip[19221:13422591] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSURL initFileURLWithPath:]: nil string parameter' *** First throw call stack: ( 0 CoreFoundation 0x00000001bbe19148 __exceptionPreprocess + 240 1 libobjc.A.dylib 0x00000001bbb63e04 objc_exception_throw + 60 2 Foundation 0x00000001bcc5366c +[NSIndexSet allocWithZone:] + 0 3 Foundation 0x00000001bcc532d4 +[NSURL(NSURL) fileURLWithPath:] + 100 4 PackageKit 0x00000001d9d90038 -[PKSignedContainer _startUnarchivingAtPath:cancelHandler:notifyOnQueue:progress:finish:] + 4508 5 PackageKit 0x00000001d9d908b0 __74-[PKSignedContainer startUnarchivingAtPath:notifyOnQueue:progress:finish:]_block_invoke + 68 6 libdispatch.dylib 0x00000001bbb065f0 _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x00000001bbb081b4 _dispatch_client_callout + 20 8 libdispatch.dylib 0x00000001bbb0b2c8 _dispatch_queue_override_invoke + 784 9 libdispatch.dylib 0x00000001bbb198e8 _dispatch_root_queue_drain + 396 10 libdispatch.dylib 0x00000001bbb1a104 _dispatch_worker_thread2 + 164 11 libsystem_pthread.dylib 0x00000001bbcc8324 _pthread_wqthread + 228 12 libsystem_pthread.dylib 0x00000001bbcc7080 start_wqthread + 8 ) libc++abi: terminating with uncaught exception of type NSException No Xcode.app(or Xcode-beta.app) found in XIP. Please remove /Users/ec2-user/Library/Caches/XcodeInstall/Xcode_14.3.xip if you suspect a corrupted download or run xcversion update to see if the version you tried to install has been pulled by Apple. If none of this is true, please open a new GH issue.

selundqma commented 1 year ago

Tried twice! No change.

xcversion --version 2.8.1

rogerluan commented 1 year ago

Hi @selundqma 👋

Xcode 14.3 requires a Mac running macOS Ventura 13.0 or later.

Source: https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes

Thus, this is not an issue with xcode-install 🙏

selundqma commented 1 year ago

Oh! I did not know that! Time to update my AWS instance then :). Thank you very much for fast support! BR, Mats

rogerluan commented 1 year ago

@selundqma speaking of updating AWS instance, I was looking into doing the same this week, but I couldn't find any material/docs/tutorials on how to do that properly (without risking the instance dying forever and not rebooting anymore). Once I went over vnc and updated it from the UI but the instance died forever, so I had to get a fresh one 😭

Would you be able to point me to the right direction?

selundqma commented 1 year ago

@rogerluan Hi!! Oh I feel your pain when you wrote about the instance dying last time. Well.. I must confess I don´t think I have ever updated an existing instance to a new macOS version. I think last time I just killed off the old one and create a new. But this time I will try to do it "the right way" and try to do a proper upgrade. If I am successful I will tell you here :).

rogerluan commented 1 year ago

I truly appreciate the help @selundqma ! ❤️ lemme know how everything goes (even if it doesn't go well 😂)

Cheers!