xcode xcodebuild - '代码签名错误:无法找到配置文件 X'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10454628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcodebuild - 'Code Sign error: Provisioning profile X can't be found'
提问by Ryan
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 中,并将 project.pbxproj 中的 profile 字段设置为仅配置文件 ID
It is a requirement that I need to be configure this at the command line w/o Jenkins/Hudson
我需要在没有 Jenkins/Hudson 的命令行中进行配置
回答by jarnoh
Provisioning file goes to ~/Library/MobileDevice/Provisioning Profiles and you you can select the provisioning profile like this:
配置文件转到 ~/Library/MobileDevice/Provisioning Profiles,您可以像这样选择配置文件:
xcodebuild PROVISIONING_PROFILE=12345678-9012-3456-7890-123456789012

