3

我为编译 iOS 应用程序制作了 jenkins 工作,但我的构建失败且没有错误:

    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

我不明白我有这个错误......

4

1 回答 1

5

when i had the similar issue

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

** BUILD FAILED **

Build step 'Xcode' marked build as failure

then i looked back at the log build and i found that

While reading /Users/t/Desktop/jenkins/workspace/myapp/Client/myapp/myapp/media/RatingScreen/Residential_Active@2x.png pngcrush caught libpng error:

Not a PNG file..

Could not find file: /tmp/jenkins/myapp/build/myapp.app/Residential_Active@2x.png Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

when i fix this error, it is "BUILD SUCCEEDED"

于 2013-11-21T08:19:40.750 回答