xcodebuild—“代码签名错误:无法找到配置文件X”

时间:2022-02-20 23:11:08

Yet another code sign error.

还有一个代码符号错误。

I'm running command:

我运行命令:

xcodebuild -project $DIR/myproject.xcodeproj -sdk iphoneos5.0 -alltargets

and my project.pbxproj

和我project.pbxproj

"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Ryan"
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "/Users/ryan/12345678-9012-3456-7890-123456789012.mobileprovision";

with output

与输出

=== BUILD NATIVE TARGET myproject OF PROJECT myproject WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
[BEROR]Code Sign error: Provisioning profile '/Users/ryan/12345678-9012-3456-7890-123456789012.mobileprovision' can't be found

I can't find any guidance on how to do this. Ive tried putting the provision in ~/Library/MobileDevice/Provisioning Profiles and setting the profile field in project.pbxproj to just the profile ID

我找不到任何关于如何做到这一点的指导。我试着把这个条款放在~/Library/MobileDevice/Provisioning Profiles中,并设置项目中的profile字段。pbxproj只是配置文件ID。

It is a requirement that I need to be configure this at the command line w/o Jenkins/Hudson

这是一个要求,我需要在命令行w/o Jenkins/Hudson中配置这个。

1 个解决方案

#1


20  

Provisioning file goes to ~/Library/MobileDevice/Provisioning Profiles and you you can select the provisioning profile like this:

配置文件进入~/库/移动设备/配置文件,您可以选择这样的配置文件:

xcodebuild PROVISIONING_PROFILE=12345678-9012-3456-7890-123456789012

#1


20  

Provisioning file goes to ~/Library/MobileDevice/Provisioning Profiles and you you can select the provisioning profile like this:

配置文件进入~/库/移动设备/配置文件,您可以选择这样的配置文件:

xcodebuild PROVISIONING_PROFILE=12345678-9012-3456-7890-123456789012