xcodebuild 错误:没有配置文件匹配 [英] xcodebuild error: no provisioning profile matches

查看:25
本文介绍了xcodebuild 错误:没有配置文件匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令构建和存档我的 XCode 项目:

I'm trying to build and archive my XCode project using following command:

xcodebuild -scheme MyApp -workspace MyApp.xcworkspace clean archive -archivePath build/MyApp
xcodebuild -configuration AdHoc -exportArchive -exportFormat ipa -archivePath "build/MyApp.xcarchive" -exportPath "build/MyApp.ipa" -exportProvisioningProfile "afe33cd1-5e6c-47a6-a315-bd442e43ad95"

它正在成功构建,但导出 ipa 失败并出现以下错误:

It is building successfully but exporting ipa is failling with following error:

error: no provisioning profile matches 'afe33cd1-5e6c-47a6-a315-bd442e43ad95'
** EXPORT FAILED **

我也试过了

 -exportProvisioningProfile "afe33cd1-5e6c-47a6-a315-bd442e43ad95.mobileprovision"

我将不胜感激这方面的任何帮助.谢谢

I'll appreciate any help in this regard. Thanks

推荐答案

-exportProvisioningProfile 的值应该是系统中配置文件的确切名称,您也可以从开发者门户复制这个确切名称.

Value of -exportProvisioningProfile should be the exact name of the provision profile in your system, you can copy this exact name from your developer portal also.

这篇关于xcodebuild 错误:没有配置文件匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆