xcode IPA 无效:缺少嵌入式配置文件。你确定这是临时的吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26428519/
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
Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?
提问by Hamid
I have searched a lot on internet but non of the solutions work for me. I create an ipa with Xcode Maven PluginIt successfully builds my application and creates an ipa but when I want to upload it on testflightapp it gives me this error:
我在互联网上搜索了很多,但没有一个解决方案适合我。我用Xcode Maven 插件创建了一个 ipa它成功地构建了我的应用程序并创建了一个 ipa 但是当我想将它上传到 testflightapp 时,它给了我这个错误:
Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?
I have added provisioning profile in build settings like the following pic
我在构建设置中添加了配置文件,如下图
If I create ipa manually with Xcode>Product>Archive I can successfully upload ipa on testflightapp. So my guess is that Xcode Maven Plugin cannot read my provisioning profile. I tried to force using provisioning profile by specifying it in pom file like bellow:
如果我使用 Xcode>Product>Archive 手动创建 ipa,我可以在 testflightapp 上成功上传 ipa。所以我的猜测是 Xcode Maven Plugin 无法读取我的配置文件。我试图通过在 pom 文件中指定它来强制使用配置文件,如下所示:
<configuration>
<configurations>
<configuration>Debug</configuration>
<configuration>Release</configuration>
</configurations>
<provisioningProfile>42CB38B0-62BB-4242-BD03-72EDB7570842</provisioningProfile>
</configuration>
Any help would be appreciated.
任何帮助,将不胜感激。
回答by Michal Shatz
回答by Nij
This is an old question but may help others.
这是一个老问题,但可能对其他人有帮助。
From the screenshot I see you have selected iPhone device and not Generic iOS Devicethat's why it is giving you provisioning profile error.
从屏幕截图中,我看到您选择了 iPhone 设备而不是通用 iOS 设备,这就是为什么它会给您配置配置文件错误。
Select Generic iOS device and then build the project.
选择通用 iOS 设备,然后构建项目。
I got this error and it catches my eyes.
我收到了这个错误,它引起了我的注意。
回答by Hamid
I figured out the problem. I was using wrong ipa file from maven target. I was using ipa from this path:
我解决了这个问题。我使用了来自 Maven 目标的错误 ipa 文件。我从这条路径使用 ipa:
/target/checkout/src/xcode/build/Debug-iphonesimulator
I had to use this path
我不得不使用这条路
/target/checkout/src/xcode/build/Release-iphoneos
It was stupid mistake.
这是愚蠢的错误。