【发布时间】:2017-07-12 07:56:45
【问题描述】:
我尝试使用 Xcode 为我的应用命令行签名。
在MyApp.xcodeproj 上运行xcodebuild 命令行就像这样:
xcodebuild -project "MyApp.xcodeproj" -target "MyApp" -sdk "iphoneos" -configuration *Release* PROVISIONING_PROFILE="xxxx-xxxx-xxxx-xxxx" CODE_SIGN_IDENTITY="iPhone Developer: something.com (SOMEVALUE)"
出现以下错误:
Check dependencies
Provisioning profile "iOS Team Provisioning Profile: *" doesn't include signing certificate "iPhone Developer: something.com (SOMEVALUE)".
Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
** BUILD FAILED **
怎么了?我的xcodebuild 命令中缺少什么?
我怎样才能包含它询问的签名证书?
我从下面的答案和 cmets 中尝试了什么
据我了解,发布版本应使用专用的distribution profile。这存在于系统中。如果可以的话,我只需要知道如何将它与xcodebuild 命令一起用于手动签名。
执行security find-identity -p codesigning -v | grep "$CODE_SIGN_IDENTITY" 会给出一个包含 5 个签名身份的列表,其中一个明确声明为iPhone Distribution: My Company (SOME123ID)。
*那么,我可以将分发配置文件与 xcodebuild 手动签名一起使用吗?如果是,我如何获取分发配置文件的实际 ID 以与 xcodebuild 命令一起使用?
【问题讨论】:
标签: xcode provisioning-profile xcodebuild ios-provisioning