首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >试飞应使用哪种证书类型和配置配置文件类型

试飞应使用哪种证书类型和配置配置文件类型
EN

Stack Overflow用户
提问于 2015-12-04 19:46:51
回答 1查看 786关注 0票数 0

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

目前为止有什么?

  • 建设与归档

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

  • 导出到ipa文件

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 Development
  4. 添加一个新的配置配置文件,该配置文件连接到iOS App Development类型的特定应用程序版本,稍后将显示为iOS Development

问题:

  1. 这里应该使用哪种证书/证书类型?
  2. 这里应该使用哪个配置配置文件?
  3. 如何在以后通过命令行只为TestFlight推送应用程序?
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-07 21:32:22

1/ A分配1

2/一个应用程序商店

你不能这样做,除非你使用像https://github.com/fastlane/fastlane这样的工具(试点)

祝好运

尼古拉斯

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34096279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档