简体   繁体   English

Jenkins生成的ipa无法在iPhone(iOS 9 + XCode 7.1)上安装

[英]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.

相关问题 如何构建.ipa并将其安装在iPhone上的Xcode? - How to build .ipa and install it on iphone form xcode? 在iOS设备(iPhone / iPad)上安装应用或从Xcode创建.ipa,而无需代码签名和开发者帐户 - Install app on iOS device (iPhone / iPad) or create .ipa from Xcode without code signing and developer account "如何在 XCode iOS 模拟器上安装 .ipa 文件" - How to Install .ipa File on XCode iOS Simulator 在iOS中以编程方式在iPhone上安装IPA文件 - Install an ipa file on iphone programatically in ios 无法在设备上安装Xcode Server bot生成的ipa - Can't install ipa generated by Xcode Server bot on the device 无法在iOS9上运行的iphone6中安装ios ipa文件 - Not able to install ios ipa file in iphone6 running on iOS9 构建iOS应用程序并通过TestFlight与Jenkins和Xcode 7分发.ipa - Build iOS app and distribute .ipa via TestFlight with Jenkins and Xcode 7 在iPhone 6上安装.ipa - Install .ipa on iPhone 6 Xcode Server CI版本无法与iOS 7.1一起安装 - Xcode Server CI builds fail to install with iOS 7.1 Xcode 7.1 iOS 9.0 watchOS 2 应用在安装后停止运行 - Xcode 7.1 iOS 9.0 watchOS 2 app stops running after install
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM