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

xctool compiled against old Xcode #2836

Closed
sarahhodne opened this issue Oct 2, 2014 · 5 comments
Closed

xctool compiled against old Xcode #2836

sarahhodne opened this issue Oct 2, 2014 · 5 comments

Comments

@sarahhodne
Copy link
Contributor

Our current version of xctool was compiled against the old version of Xcode, resulting in this error:

objc[1301]: Class SimDeviceSet is implemented in both /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator and /usr/local/Cellar/xctool/0.2/libexec/bin/xctool. One of the two will be used. Which one is undefined.
objc[1301]: Class SimDeviceType is implemented in both /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator and /usr/local/Cellar/xctool/0.2/libexec/bin/xctool. One of the two will be used. Which one is undefined.
objc[1301]: Class SimRuntime is implemented in both /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator and /usr/local/Cellar/xctool/0.2/libexec/bin/xctool. One of the two will be used. Which one is undefined.
2014-10-01 01:46:16.161 xctool[1301:2a07] +[SimDeviceType supportedDeviceTypesByAlias]: unrecognized selector sent to class 0x1009962d0
2014-10-01 01:46:16.303 xctool[1301:2a07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[SimDeviceType supportedDeviceTypesByAlias]: unrecognized selector sent to class 0x1009962d0'*** First throw call stack:(
 0 CoreFoundation 0x0000000101b8b25c __exceptionPreprocess + 172
 1 libobjc.A.dylib 0x00000001017c0e75 objc_exception_throw + 43
 2 CoreFoundation 0x0000000101b8e02d +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
 3 CoreFoundation 0x0000000101ae9044 ___forwarding___ + 452
 4 CoreFoundation 0x0000000101ae8df8 _CF_forwarding_prep_0 + 120
 5 xctool 0x0000000100966b59 +[SimulatorInfoXcode6 deviceNameForAlias:] + 36
 6 xctool 0x000000010095615c -[Options validateAndReturnXcodeSubjectInfo:errorMessage:] + 2673
 7 xctool 0x000000010094c5c7 -[XCTool run] + 1398
 8 xctool 0x000000010094b790 main + 542
 9 xctool 0x0000000100949694 start + 52

We should upgrade to xctool 0.2.1, which doesn't have this issue (although as far as I can tell, 0.2 would also work, we just need to compile it against the latest Xcode instead).

@sarahhodne
Copy link
Contributor Author

A workaround for now:

before_install:
  - brew update
  - if brew outdated | grep -qx xctool; then brew upgrade xctool; fi

This will update xctool to 0.2.1, but will not break once we update it on the image (just brew upgrade xctool will break, as Homebrew "fails" if the package is already the latest version).

@joeydong
Copy link

joeydong commented Oct 7, 2014

this workaround worked for me!

kt3k added a commit to strawjs/straw-ios-service-toast that referenced this issue Oct 8, 2014
@designatednerd
Copy link

I can confirm this workaround worked for me as well. Any word on when the updated version of xctool is going to be rolled out fully?

michaelochs pushed a commit to Hotel-Reservation-Service/HRSCustomErrorHandling that referenced this issue Oct 16, 2014
For details about the error that occurs, please see: travis-ci/travis-ci#2836
jonalmeida added a commit to snowplow/snowplow-ios-tracker that referenced this issue Oct 24, 2014
muccy added a commit to muccy/MUKDataSource that referenced this issue Oct 25, 2014
jonalmeida added a commit to snowplow/snowplow-ios-tracker that referenced this issue Oct 28, 2014
tonyarnold added a commit to magicalpanda/MagicalRecord that referenced this issue Oct 31, 2014
tonyarnold added a commit to magicalpanda/MagicalRecord that referenced this issue Oct 31, 2014
@sarahhodne
Copy link
Contributor Author

xctool 0.2.1 is available in our new beta environment

tanis2000 added a commit to tanis2000/MTLFMDBAdapter that referenced this issue Nov 12, 2014
pompopo added a commit to pompopo/ObserverKit that referenced this issue Nov 16, 2014
@sarahhodne
Copy link
Contributor Author

The beta environment is now the default environment.

naqi pushed a commit to naqi/MagicalRecord that referenced this issue Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants