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 10.x installation failed due to certificate issue #360

Closed
Kesin11 opened this issue Oct 26, 2019 · 3 comments · Fixed by #361

Comments

@Kesin11
Copy link
Contributor

@Kesin11 Kesin11 commented Oct 26, 2019

Issue Description

I tried to install Xcode 10.3 with xcversion install 10.3 but it failed.
It success to download and after that, output these log and remove Xcode-10.3.app from /Applications. As a result, I could not get Xcode.

/Applications/Xcode-10.3.app: valid on disk
/Applications/Xcode-10.3.app: satisfies its Designated Requirement
%

I found that the problem was caused by Xcode certificate.
https://github.com/xcpretty/xcode-install/blob/v2.6.1/lib/xcode/install.rb#L689-L694
I tried to print cert_info with Xcode 10.3 and result is here.

{"bundle_identifier"=>"com.apple.dt.Xcode",
 "authority"=>
  ["Software Signing",
   "Apple Code Signing Certification Authority",
   "Apple Root CA"],
 "team_identifier"=>"not set"}

verify_app_cert expect team_identifier is equal to TEAM_IDENTIFIER = '59GAB85EFG' but actual value is not set in Xcode 10.3.

I also checked other version of Xcode has same problem. In result, only Xcode 11.1 can be installed. (Xcode 11.0 faces other problem.)
https://github.com/Kesin11/xcode-install/runs/275918237

Environment

macOS 10.14.6
ruby 2.6.5
xcode-install v2.6.1

@rcousens

This comment has been minimized.

Copy link

@rcousens rcousens commented Oct 30, 2019

This issue is also affecting all our MacOS build slaves (12) for a Unity game we develop. We just upgraded them all to mojave while this issue started presenting itself halfway through the conversion process. I've ended up modifying the code directly in the gem once installed to just return true on the verify_app_cert method. Would love to see this fixed properly.

@nancy-gomez

This comment has been minimized.

Copy link

@nancy-gomez nancy-gomez commented Oct 30, 2019

Ya'll you just need to change your date and time back and it works for the installation!
https://forums.developer.apple.com/thread/125108

I changed my date to Oct 23 because the cert for version 11.0 supposedly expired on Oct 24

@milch milch closed this in #361 Nov 9, 2019
@edulpn

This comment has been minimized.

Copy link

@edulpn edulpn commented Nov 11, 2019

Hey everyone, I'm setting up two new machines today and trying to install Xcode 10.3 on them, both on same macOS versions 10.14.6, xcversion 2.6.2, ruby 2.4.0. One works perfectly fine and the other is stuck with this issue. I tried to do @nancy-gomez trick with the date but no deal. Any thoughts? When is this fix mentioned above going to be live?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.