xcode build fails with error code 65 without indicative message

后端 未结 4 937
别那么骄傲
别那么骄傲 2021-01-07 22:52

I\'m experiencing weird behaviour with my iPhone CI job (running in TeamCity). Every once in a while our build fails without any indicative error in the build log. The build

4条回答
  •  一生所求
    2021-01-07 23:37

    I also had a similar problem, in my case it was caused by the fact I'm using both Xcode 7.2 and Xcode 6.4 side by side. When the simulator of Xcode 6.4 is open (iOS Simulator 8.4) and I try to start a test from the commandline using Xcode 7.2 I get this 65 error.

    Eg. when iOS Simulator 8.4 is open:

    # sudo xcode-select -s "/Applications/Xcode 7.2.app/Contents/Developer"
    # xcodebuild test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -workspace "/path/to/MyWorkspace.xcworkspace" -scheme "MyProject" -destination "platform=iOS Simulator,name=iPhone 6,OS=9.2"
    (cut)
    ** TEST FAILED **
    # echo $?
    65
    

    Solution is to kill the simulator before starting the test:

    # killall "iOS Simulator"
    # killall "Simulator"
    

    The process is called "iOS Simulator" for XCode 6.4 and earlier and called "Simulator" for later XCode versions.

提交回复
热议问题