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

私が同様の問題を抱えていたとき

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」になります

于 2013-11-21T08:19:40.750 に答える