我让jenkins为compilate iOS应用程序工作,但我的构建失败而没有错误:
CodeSign /Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Products/Release-iphoneos/XXXXX.com.app
cd /Users/jenkins/workspaceJenkins/XXXXX.com
setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Using code signing identity "iPhone Distribution: XXXXXXX (XXXXX)" and provisioning profile "XXXXX-Jenkins" (XXXXXXXXXXXXXXXXXXXXXXXXXX)
codesign --force --sign XXXXXXXXXXXXXXXXXXXX --resource-rules=/Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Products/Release-iphoneos/XXXXX.com.app/ResourceRules.plist --entitlements /Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Intermediates/XXXXX.com.build/Release-iphoneos/XXXXX.com.build/XXXXX.com.xcent /Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Products/Release-iphoneos/XXXXX.com.app
Validate /Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Products/Release-iphoneos/XXXXX.com.app
cd /Users/jenkins/workspaceJenkins/XXXXX.com
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/jenkins/Library/Developer/Xcode/DerivedData/XXXXX.com-aevqskpxrxfoyrgrwjxouvdqwsql/Build/Products/Release-iphoneos/XXXXX.com.app
** BUILD FAILED **
Build step 'Xcode' marked build as failure
Finished: FAILURE
我不明白我有这个错误...
答案 0 :(得分:5)
当我遇到类似问题时
Validate /tmp/jenkins/myapp/build/myapp.app
cd /Users/t/Desktop/jenkins/workspace/myapp/Client/myapp
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/lib/jvm/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/bin:/home/user/jdk/bin:/home/user/bin:/home/user/jdk/bin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /tmp/jenkins/myapp/build/myapp.app
**建筑失败**
构建步骤'Xcode'将构建标记为失败
然后我回顾了日志构建,我发现了
While reading /Users/t/Desktop/jenkins/workspace/myapp/Client/myapp/myapp/media/RatingScreen/Residential_Active@2x.png pngcrush caught libpng error:
不是PNG文件..
无法找到文件:/tmp/jenkins/myapp/build/myapp.app/Residential_Active@2x.png 命令/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng发出错误但未返回非零退出代码以指示失败
当我修复此错误时,它是“BUILD SUCCEEDED”