Skip to content

Conversation

@bxvd
Copy link

@bxvd bxvd commented Feb 18, 2022

On at least some M1 macs, the output of xcodebuild -version to stdout is:

objc[95130]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e358b678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d882c8). One of the two will be used. Which one is undefined.
objc[95130]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e358b6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103d88318). One of the two will be used. Which one is undefined.
Xcode 13.2.1
Build version 13C100

This causes codesigndoc scan xcode to produce the following error:

Error: failed to get Xcode (xcodebuild) version, error: failed to parse xcodebuild version output (objc[95130]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e358b678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fbc2c8). One of the two will be used. Which one is undefined.
objc[95130]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e358b6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fbc318). One of the two will be used. Which one is undefined.
Xcode 13.2.1
Build version 13C100)

Added a regex to filter the output.

@godrei
Copy link
Contributor

godrei commented Feb 28, 2022

Hi @bxvd ,
thanks for the contribution!

A previous PR updated our go-xcode dependency and this update pulled the M1 Xcode version parsing issue fix.

So that I'm closing this PR.

@godrei godrei closed this Feb 28, 2022
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

Successfully merging this pull request may close these issues.

2 participants