xcode 为什么“ionic run ios”会出现“找不到匹配的配置文件”的错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25968329/
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
Why does `ionic run ios` error with "No matching provisioning profile found"?
提问by Mik378
My goal is to run my Ionic app on my iPhone. I don't figure out what could be the reason explaining this exception:
我的目标是在我的 iPhone 上运行我的 Ionic 应用程序。我不知道解释这个异常的原因可能是什么:
myIonicApp$ sudo ionic run ios
Check dependencies
=== BUILD TARGET WealCome OF PROJECT WealCome WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “dabcc352-0b59-415a-bcd1-6f6ea1d1fbe6”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
I have this build settings:
我有这个构建设置:
The organizer:
主办方:
回答by Mario Shtika
As Mik378 said on his comment the right destination path of the provisioning profiles seems to be /Library/MobileDevice so all you have to do is copy everything you need to that folder:
正如 Mik378 在他的评论中所说,配置文件的正确目标路径似乎是 /Library/MobileDevice 所以你所要做的就是将你需要的所有内容复制到该文件夹中:
sudo cp -r ~/Library/MobileDevice/ /Library/MobileDevice/
回答by krisdyson
Try going into Xcode preferences, into Accounts and clicking the refresh button at the bottom left of the dialog.
尝试进入 Xcode 首选项,进入帐户并单击对话框左下角的刷新按钮。