ios - 构建失败的 jenkins iOS 没有错误

标签 ios jenkins

我让 jenkins 工作来编译 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

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

最佳答案

当我遇到类似的问题时

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”

关于ios - 构建失败的 jenkins iOS 没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19506982/

相关文章:

ios - Mac 催化剂 : multi-window without supporting multi-window in iPad app?

ubuntu - 当 Jenkins 作业运行时, Jenkins 使用的用户不属于组

ruby - Selenium Webdriver Chromedriver 在 headless 模式下启动超时

python-3.x - 为什么我的 jenkins 服务器上不同用户的 sqlite 版本不同?

iphone - iOS应用程序的企业分发

ios - iOS8 中的休息套件失败

Jenkins 管道 : kubectl: not found

batch-file - 在 jenkins 中使用 psexec.exe,句柄无效

ios - iPhone 应用程序编程中网络调用请求/响应的最佳实践

ios - 在提交应用程序之前启用位码与包含位码