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).
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.
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
orxcodebuild
command (whichxcversion installed
is using).