facebookarchive / xctool

An extension for Apple's xcodebuild that makes it easier to test iOS and macOS apps.
Apache License 2.0
6.91k stars 738 forks source link

Latest master is not compatible with Xcode 8 #739

Closed alanzeino closed 7 years ago

alanzeino commented 7 years ago

I've been testing cc45652be04529c57eee02a6988bcf8e7dc88e80 with Xcode 9, and it seems to hold up pretty well at scale on our CI. However that same build does not work with Xcode 8.3.2:

$ buck test //foo:Bar
Not using buckd because watchman isn't installed.
[-] PROCESSING BUCK FILES...FINISHED 12.0s [100%] 🐳  New buck daemon
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
[-] BUILDING...FINISHED 7m 24.2s [100%] (5071/5071 JOBS, 4963 UPDATED, 4457 [87.9%] CACHE 
[+] TESTING...0.2s
 |=> //foo:Bar...  0.2s (running xctool-run-tests[0.2s])
xctool failed with exit code 134: dyld: Symbol not found: _OBJC_CLASS_$_FXPCSessionManager
  Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12)
  Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC
 in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
RESULTS FOR //foo:Bar
FAIL    <100ms  0 Passed   0 Skipped   1 Failed   //foo:Bar
FAILURE //foo:Bar main: //foo:Bar failed with exit code 134:
xctool-run-tests
com.facebook.buck.step.StepFailedException: //foo:Bar failed with exit code 134:

We would prefer to be backwards compatible with 8, but I think the project also tries to be backwards compatible too.

ExtremeMan commented 7 years ago

Yeah, my bad. I will try to fix it and put a new release. Should be doable.

alanzeino commented 7 years ago

Thanks! Appreciate it.

I also tried 8.3.3 and saw the same issue (I thought it was just 8.3.2).

ExtremeMan commented 7 years ago

Should be fixed in 0.3.4 release!

alanzeino commented 7 years ago

Thanks Aleksey!