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

Xcode 14 beta install failing spctl check #460

Open
ggrell opened this issue Jun 7, 2022 · 8 comments
Open

Xcode 14 beta install failing spctl check #460

ggrell opened this issue Jun 7, 2022 · 8 comments

Comments

@ggrell
Copy link

ggrell commented Jun 7, 2022

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)
@richardsimkins
Copy link

Same on intel macbook pro running Monterey 12.3.1 and an intel mac pro also on 12.3.1

@bitrise-tom
Copy link

@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

@remarkov
Copy link

remarkov commented Jun 8, 2022

@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

@bitrise-tom
Copy link

It was my initial thought, but I am seeing the same her for intel too

@richardsimkins
Copy link

@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.

@TheMetalCode
Copy link

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.

@TheMetalCode
Copy link

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.

@richardsimkins
Copy link

I can confirm that Xcode "14 beta 2" passes verification and xcversion works as expected.

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