我尝试使用 Xcode 签署我的应用程序命令行。
Running xcodebuild
命令行开启MyApp.xcodeproj
like so:
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
命令 ?
我怎样才能包含它询问的签名证书?
我从下面的答案和评论中尝试了什么
据我了解,一个专门的distribution profile
应与发布版本一起使用。这是系统中存在的。我只需要知道如何使用它xcodebuild
如果可以的话,手动签名的命令。
执行中security find-identity -p codesigning -v | grep "$CODE_SIGN_IDENTITY"
给出了 5 个签名身份的列表,其中明确指出为iPhone Distribution: My Company (SOME123ID)
.
*那么,我可以使用 xcodebuild 手动签名的分发配置文件吗?如果是,如何获取与 xcodebuild 命令一起使用的分发配置文件的实际 ID?
Using PROVISIONING_PROFILE
自 Xcode8 起已弃用。尝试PROVISIONING_PROFILE_SPECIFIER
反而。PROVISIONING_PROFILE_SPECIFIER="Human Readable Prov Profile Name"
可能还需要关闭 Xcode 的自动签名:
Xcode9:只需附加CODE_SIGN_STYLE="Manual"
到你的 xcodebuild 命令
Xcode8: sed -i '' 's/ProvisioningStyle = Automatic;/ProvisioningStyle = Manual;/' TestApp/TestApp.xcodeproj/project.pbxproj && xcodebuild ...
您可以在命令行上检查您的 Xcode 版本xcodebuild -version
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)