xcode build fails with error code 65 without indicative message

陌路散爱 提交于 2019-12-19 05:08:31

问题


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 reaches the last stage of codesign validation and I get ** BUILD FAILED ** message immediately after.

These are the last lines of the log of a good and bad builds -

Bad Build
[15:00:56] :             [CodeSign]     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity/buildAgent/work/dc055fa257f562be/DerivedData/MyProject/Build/Products/AdHoc-iphoneos/MyProject.app
[15:00:58]W:     [Step 3/6] ** BUILD FAILED **

Good Build
[14:09:13] :             [CodeSign]     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity/buildAgent/work/dc055fa257f562be/DerivedData/MyProject/Build/Products/AdHoc-iphoneos/MyProject.app
[14:09:13] :     [Step 3/6] ** BUILD SUCCEEDED **

Because it's running in a CI I looked for user interaction problems (opening the keychain...etc') but usually xcodebuild spews the relevant errors.

Is there any other log I can dig into to find the cause of the build failures?

EDIT: Seems I had the same problem like build failed jenkins iOS no error.


回答1:


Had the same problem as build failed jenkins iOS no error

tl;dr - CopyPNG failed because of two images with the same name.




回答2:


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.




回答3:


You need to remove platform ios - $cordova platform rm ios, and then add platform - $cordova platform add ios. now build ios - $cordova build ios




回答4:


I hit this when updating to Xcode 8, in my case it was because I had set the PROVISIONING_PROFILE_SPECIFIER setting incorrectly



来源:https://stackoverflow.com/questions/28794243/xcode-build-fails-with-error-code-65-without-indicative-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!