简体   繁体   English

Xcode 9导出选项如何指定配置文件

[英]Xcode 9 export options how to specify provisioning profile

I am running the build using Jenkins and with Xcode 9 beta, I am getting an error with the profile. 我正在使用Jenkins和Xcode 9 beta运行构建,我收到了配置文件的错误。 Here is the error that I am getting 这是我得到的错误

NSLocalizedRecoverySuggestion=Select a provisioning profile for the "Default" build configuration in the project editor.} NSLocalizedRecoverySuggestion =在项目编辑器中为“默认”构建配置选择配置文件。}

Please let me know how can I resolve this. 请让我知道如何解决这个问题。 Thanks. 谢谢。

Please follow these steps: 请按以下步骤操作:

  1. Manually generate and export the IPA file with Xcode, it will create a file name ExportOptions.plist in the exported folder, copy that file to workspace root folder 使用Xcode手动生成并导出IPA文件,它将在导出的文件夹中创建文件名ExportOptions.plist,将该文件复制到工作区根文件夹
  2. In Jenkin General build settings, uncheck "Pack application, build and sign .ipa?", and check "Generate Archive?" 在Jenkin常规构建设置中,取消选中“打包应用程序,构建并签署.ipa?”,然后选中“生成存档?”
  3. Add an Execute cell like this: xcodebuild -exportArchive \\ -archivePath "${WORKSPACE}/build/YourProject.xcarchive" \\ -exportPath "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive" \\ -exportOptionsPlist "${WORKSPACE}/ExportOptions.plist" 像这样添加一个Execute单元格: xcodebuild -exportArchive \\ -archivePath "${WORKSPACE}/build/YourProject.xcarchive" \\ -exportPath "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive" \\ -exportOptionsPlist "${WORKSPACE}/ExportOptions.plist"
  4. (optional) Setup again your next steps on upload IPA file if any. (可选)再次设置上传IPA文件的后续步骤(如果有)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM