Jenkins的Xcode插件不能与Xcode9.0一起使用 [英] Xcode Plugin of Jenkins not working with Xcode9.0

查看:145
本文介绍了Jenkins的Xcode插件不能与Xcode9.0一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins的Xcode插件,该插件适用于Xcode 8.3,但由于代码签名的更改而与Xcode 9.0不兼容.

I am using Xcode plugin of Jenkins which is working for Xcode 8.3 but it is not compatible with Xcode 9.0 because of changes in code signing .

我收到如下错误:

错误:exportArchive:"SwiftDemo.app"需要配置文件. 错误域= IDEProvisioningErrorDomain代码= 9" SwiftDemo.app需要提供配置文件." UserInfo = {NSLocalizedDescription ="SwiftDemo.app"需要一个 供应配置文件.,NSLocalizedRecoverySuggestion =将配置文件添加到 导出选项属性中的"provisioningProfiles"字典 列表.}

error: exportArchive: "SwiftDemo.app" requires a provisioning profile. Error Domain=IDEProvisioningErrorDomain Code=9 ""SwiftDemo.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="SwiftDemo.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

**导出失败**

推荐答案

我也遇到了此错误.但是现在解决了这个问题.我可以在Xcode9.0和Xcode9.2中成功构建.

I was also getting this error. But now solved the issue. I can build successfully in Xcode9.0 and Xcode9.2.

以下是克服上述错误的以下步骤.

Here are the steps mentioned below to overcome above error.

  • 使用Xcode手动生成和导出IPA文件.这将在导出的文件夹中创建文件名ExportOptions.plist.
  • 将该文件复制到工作区根文件夹.
  • 在"Jenkin常规"构建设置中,取消选中打包应用程序,构建并签名.ipa?",然后选中生成存档?".
  • 最后,添加一个像这样的Execute shell,

  • Manually generate and export the IPA file with Xcode. This will create a file name ExportOptions.plist in the exported folder.
  • Copy that file to workspace root folder.
  • In Jenkin General build settings, uncheck "Pack application, build and sign .ipa?", and check "Generate Archive?".
  • And last, add an Execute shell like this,

 xcodebuild -exportArchive -archivePath ${WORKSPACE}/build/YourProject.xcarchive -exportPath ${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive -exportOptionsPlist ${WORKSPACE}/ExportOptions.plist

这篇关于Jenkins的Xcode插件不能与Xcode9.0一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆