作者:1076263105_69ae53 | 来源:互联网 | 2023-01-29 19:34
我尝试使用Xcode签署我的app命令行.
像这样运行xcodebuild
命令行:MyApp.xcodeproj
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
应该与Release版本一起使用.这存在于系统中.xcodebuild
如果可以的话,我只需要知道如何使用命令进行手动签名.
执行security find-identity -p codesigning -v | grep "$CODE_SIGN_IDENTITY"
给出了5个签名身份的列表,其中一个明确表示为iPhone Distribution: My Company (SOME123ID)
.
*那么,我可以使用xcodebuild手动签名的分发配置文件吗?如果是,我如何获得与xcodebuild命令一起使用的分发配置文件的实际ID?
1> Sven Driemec..:
使用PROVISIONING_PROFILE
自Xcode8已被弃用.试试吧PROVISIONING_PROFILE_SPECIFIER
.PROVISIONING_PROFILE_SPECIFIER="Human Readable Prov Profile Name"
可能还需要关闭Xcode的自动签名:
Xcode9:只需附加CODE_SIGN_
到xcodebuild命令即可
Xcode8: sed -i '' 's/ProvisiOningStyle= Automatic;/ProvisiOningStyle= Manual;/' TestApp/TestApp.xcodeproj/project.pbxproj && xcodebuild ...
您可以在命令行上检查Xcode版本 xcodebuild -version