本文介绍了IPA无效:缺少嵌入式配置文件.您确定这是专案吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上进行了大量搜索,但没有一种解决方案适合我.我使用 Xcode Maven插件创建了一个ipa构建我的应用程序并创建一个ipa,但是当我想将其上传到testflightapp时,会出现以下错误:

I have searched a lot on internet but non of the solutions work for me. I create an ipa with Xcode Maven Plugin It successfully builds my application and creates an ipa but when I want to upload it on testflightapp it gives me this error:

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

如果我使用Xcode> Product> Archive手动创建ipa,则可以在testflightapp上成功上传ipa.所以我的猜测是Xcode Maven插件无法读取我的配置文件.我试图通过在类似于以下波纹管的pom文件中指定配置文件来强制使用配置文件:

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:

<configuration>
          <configurations>
            <configuration>Debug</configuration>
            <configuration>Release</configuration>
          </configurations>
          <provisioningProfile>42CB38B0-62BB-4242-BD03-72EDB7570842</provisioningProfile>
</configuration> 

任何帮助将不胜感激.

推荐答案

我发现了问题所在.我从Maven目标使用了错误的ipa文件.我是通过以下方式使用ipa的:

I figured out the problem. I was using wrong ipa file from maven target. I was using ipa from this path:

/target/checkout/src/xcode/build/Debug-iphonesimulator

我必须使用此路径

/target/checkout/src/xcode/build/Release-iphoneos

那是愚蠢的错误.

这篇关于IPA无效:缺少嵌入式配置文件.您确定这是专案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 04:22