[英]Jenkins generated ipa couldnt install on iPhone (iOS 9 + XCode 7.1)
I am trying to implement Jenkins CI to generate build for iOS. 我正在尝试实现Jenkins CI,以为iOS生成构建。 I have latest Xcode 7.1 installed and ipa is getting generated without error.
我已经安装了最新的Xcode 7.1,并且正在生成ipa而没有错误。 While trying to install the ipa through download link I am getting an error saying "Cannot install this time".
尝试通过下载链接安装ipa时,出现一条错误消息:“这次无法安装”。 Also I tried to install the same through iTunes, but getting an error saying "1 item could not be synced" and iTunes showing an error saying "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
我也尝试通过iTunes安装相同的软件,但是出现错误消息“无法同步1个项目”,并且iTunes显示错误消息“ iPhone xxxxxx上未安装应用程序” xxxxx”,因为发生了未知错误( 0xE8000005)”。
Code signing certificate & provisioning profiles are proper and I am able to install the ipa generated from XCode. 代码签名证书和设置配置文件正确,我能够安装从XCode生成的ipa。
Any help would be appreciated. 任何帮助,将不胜感激。 Thanks :)
谢谢 :)
I was facing the same issue. 我面临着同样的问题。 Using Jenkins 2.5 and Xcode 7.3.1.
使用Jenkins 2.5和Xcode 7.3.1。 Jenkins successfully build iOS app packaged the ipa, but the ipa did not install on the iPhone neither with iTunes nor when downloaded from TestFairy.
詹金斯(Jenkins)成功构建了打包了ipa的iOS应用,但是ipa既没有安装iTunes也没有安装iTunes,也没有从TestFairy下载。 Getting the same error "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
收到相同的错误“由于发生未知错误(0xE8000005),未在iPhone“ xxxxxx”上安装应用程序“ xxxxx””。
In the Jenkins logs I noticed following: 在詹金斯日志中,我注意到以下内容:
22:03:10 ### Checking original app
22:03:10 + /usr/bin/codesign --verify -vvvv /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app
22:03:10 Program /usr/bin/codesign returned 1 : [/Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10 ]
22:03:10 Codesign check fails : /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10
22:03:10 Done checking the original app
On further search found the answer posted by bladebunny at https://github.com/Carthage/Carthage/issues/782 在进一步的搜索中,找到了Bladebunny在https://github.com/Carthage/Carthage/issues/782上发布的答案
Issue turned out to be duplicate package commands on Jenkins that resulted in the app being signed twice -- and then causing install to fail. 事实证明,此问题是Jenkins上的重复软件包命令,导致该应用程序两次签名-然后导致安装失败。 Solution was to change Jenkins Xcode plugin settings.
解决方案是更改Jenkins Xcode插件设置。 Under the 'General Build Settings' - we found you can't check both "Generate Archive" and "Pack application and build .ipa?"
在“常规构建设置”下-我们发现您无法同时选中“生成存档”和“打包应用程序并构建.ipa?” settings.
设置。 The plugin issues log seems to suggest the former setting is being deprecated.
插件问题日志似乎表明以前的设置已被弃用。 We use the latter setting and are now able to successfully deploy the app with our custom dynamic framework.
我们使用后一种设置,现在能够使用我们的自定义动态框架成功部署该应用程序。
The above fix worked for me. 上面的修复对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.