我应该使用哪种证书类型和供应配置文件类型进行测试飞行

时间:2015-12-04 19:46:51

标签: ios xcode jenkins testflight

我们正在为iOS构建设置一个带有MacOS节点的Continuous Deployment服务器。构建本身正常工作。但是,我们在签署应用程序时遇到了困难。由于我们想在动态增长的测试池中进行测试,我们目前正在使用TestFlight(集成到iTunesConnect中)。目前这是通过XCode-GUI完成的,并且工作得很好。由于我们希望将手动过程移动到CD服务器,因此需要通过命令行完成。

目前到目前为止还有什么

  • 建筑&归档

xcodebuild archive \ -project $xcodeproj.xcodeproj \ -scheme $xcodeproj \ -archivePath $xcodeproj.xcarchive \ CODE_SIGN_IDENTITY="$common_name"

  • 导出到ipa-file

xcodebuild -exportArchive \ -archivePath $xcodeproj.xcarchive \ -exportPath $xcodeproj \ -exportFormat ipa \ -exportProvisioningProfile "$provisioning_profile"

  • 验证

/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool \ --validate-app \ -f $build_dir_ios/project/$ipa_file \ -u $testflight_user \ -p $testflight_pass

但是,验证告诉我我的配置文件不正确。验证的响应如下。

2015-12-04 18:53:30.308 altool[63218:8786237] *** Error: Unable to validate archive '/Users/deploy/jenkins/workspace/***/build/ios/project/***.ipa': ( "Error Domain=ITunesConnectionOperationErrorDomain Code=1176 \"Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal..\" UserInfo=0x************ {NSLocalizedRecoverySuggestion=Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.., NSLocalizedDescription=Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.., NSLocalizedFailureReason=iTunes Store operation failed.}"

由于此故障可能是基于证书/配置文件,这就是我们创建其中两个的方法。

  1. 以管理员身份登录https://developer.apple.com
  2. 转到证书,标识符&配置文件
  3. 添加 iOS App Development 类型的新证书,稍后将显示为 iOS开发
  4. 添加新的配置文件,该配置文件连接到 iOS App Development 类型的特定应用版本,稍后将显示为 iOS开发
  5. 问题:

    1. 此处应使用哪种证书/证书类型?
    2. 此处应使用哪个配置文件?
    3. 以后如何通过命令行仅为TestFlight推送应用程序?

1 个答案:

答案 0 :(得分:0)

1 / A分配一

2 / App Store一个

3 /您不能,除非您使用https://github.com/fastlane/fastlane(飞行员)等工具

祝你好运

尼古拉斯