xcode-install
xcode-install copied to clipboard
Xcode 14 beta install failing `spctl` check
M1 mac mini running macOS 12.4
Can't seem to install the beta via xcversion install "14 beta"
, which shows the following:
/Applications/Xcode-14.beta.app: valid on disk
/Applications/Xcode-14.beta.app: satisfies its Designated Requirement
[16:53:46]: Verifying your Xcode installation at path '/Applications/Xcode-14.beta.app'...
[16:53:46]: Verifying Xcode was signed by Apple Inc.
[16:53:46]: $ codesign --display --verbose=4 /Applications/Xcode-14.beta.app
[16:53:47]: â–¸ Executable=/Applications/Xcode-14.beta.app/Contents/MacOS/Xcode
[16:53:47]: â–¸ Identifier=com.apple.dt.Xcode
[16:53:47]: â–¸ Format=app bundle with Mach-O universal (x86_64 arm64)
[16:53:47]: â–¸ CodeDirectory v=20400 size=790 flags=0x2000(library-validation) hashes=14+7 location=embedded
[16:53:47]: â–¸ VersionPlatform=1
[16:53:47]: â–¸ VersionMin=720896
[16:53:47]: â–¸ VersionSDK=851968
[16:53:47]: â–¸ Hash type=sha256 size=32
[16:53:47]: â–¸ CandidateCDHash sha256=037ee1a2914af24164471e00354cf7a80deac9f0
[16:53:47]: â–¸ CandidateCDHashFull sha256=037ee1a2914af24164471e00354cf7a80deac9f0704cdc4922dbabc7fc62780c
[16:53:47]: â–¸ Hash choices=sha256
[16:53:47]: â–¸ CMSDigest=037ee1a2914af24164471e00354cf7a80deac9f0704cdc4922dbabc7fc62780c
[16:53:47]: â–¸ CMSDigestType=2
[16:53:47]: â–¸ Executable Segment base=0
[16:53:47]: â–¸ Executable Segment limit=16384
[16:53:47]: â–¸ Executable Segment flags=0x1
[16:53:47]: â–¸ Page size=4096
[16:53:47]: â–¸ CDHash=037ee1a2914af24164471e00354cf7a80deac9f0
[16:53:47]: â–¸ Signature size=4442
[16:53:47]: â–¸ Authority=Software Signing
[16:53:47]: â–¸ Authority=Apple Code Signing Certification Authority
[16:53:47]: â–¸ Authority=Apple Root CA
[16:53:47]: â–¸ Signed Time=Jun 4, 2022 at 2:55:48 PM
[16:53:47]: â–¸ Info.plist entries=44
[16:53:47]: â–¸ TeamIdentifier=59GAB85EFG
[16:53:47]: â–¸ Sealed Resources version=2 rules=13 files=367263
[16:53:47]: â–¸ Internal requirements count=1 size=68
[16:53:47]: Successfully verified the code signature ✅
[16:53:47]: Verifying Xcode using GateKeeper...
[16:53:47]: This will take up to a few minutes, now is a great time to go for a coffee ☕...
[16:53:47]: $ /usr/sbin/spctl --assess --verbose /Applications/Xcode-14.beta.app
[16:56:06]: â–¸ /Applications/Xcode-14.beta.app: rejected (invalid destination for symbolic link in bundle)
Same on intel macbook pro running Monterey 12.3.1 and an intel mac pro also on 12.3.1
@richardsimkins from the release notes, you require macos 12.4 minumum
Xcode 14 beta requires a Mac running macOS Monterey 12.4 or later.
https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes
@bitrise-tom true, but unfortunately that won't help @richardsimkins with the issue reported here. I'm seeing this issue with both ARM and Intel platforms running 12.4
It was my initial thought, but I am seeing the same her for intel too
@richardsimkins from the release notes, you require macos 12.4 minumum
Xcode 14 beta requires a Mac running macOS Monterey 12.4 or later.
https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes
I have updated to 12.4. I am still getting the issue.
After digging into it a tad, I'm fairly certain it's the verify_xcode
fastlane action that is failing, which xcode-install
uses.
https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/verify_xcode.rb
https://github.com/xcpretty/xcode-install/blob/master/lib/xcode/install.rb#L744
I won't have time to do it immediately, but what probably needs to happen is filing an issue on the fastlane
repo.
I'm guessing there was something quirky with the first Xcode 14 beta.
I'm able to install and verify Xcode 14 Beta 2 successfully.
I can confirm that Xcode "14 beta 2" passes verification and xcversion works as expected.