xcpretty / xcode-install

đŸ”½ Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

xcversion installed returns 0.0 #377

Closed nonec closed 4 years ago

nonec commented 4 years ago

Installed current Xcode (11.3.1) with xcversion install 11.3.1

The Xcode is downloaded and installed. Afterwards if I call: xcversion installed

the version couldn't be determined for some reason: 0.0 (/Applications/Xcode-11.3.1.app)

Other commands (i.e. xcversion selected) return with this error:

xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode-11.3.1.app/Contents/Developer/usr/lib/libxcrun.dylib, 5): no suitable image found. Did find: /Applications/Xcode-11.3.1.app/Contents/Developer/usr/lib/libxcrun.dylib: code signature in (/Applications/Xcode-11.3.1.app/Contents/Developer/usr/lib/libxcrun.dylib) not valid for use in process using Library Validation: library load disallowed by system policy /Applications/Xcode-11.3.1.app/Contents/Developer/usr/lib/libxcrun.dylib: stat() failed with errno=45).

hinting at a Gatekeeper problem. Verifying through Fastlane with veryfyXcode didn't help in my case (though verification was successful). I'm not sure if these are related but to me it seems probable.

Anyone else having these kinds of problems? Am I missing something / doing something wrong?

edit: small correction It seems like the install failed after setting the developer mode (when trying to accept the license) with the same error I posted above that happens on every xcrun or xcodebuild command (which xcversion installed is using).

nonec commented 4 years ago

Seems to have resolved with either updating to the current Mac OS (10.15.4) or using the current Xcode (11.4). Now it's working for me. Mac OS was current as well, when I opened this.