【问题标题】:Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?IPA 无效:缺少嵌入式配置文件。你确定这是临时的吗?
【发布时间】:2014-12-13 05:50:55
【问题描述】:

我在互联网上搜索了很多,但没有一个解决方案适合我。我用Xcode Maven Plugin 创建了一个ipa 它成功地构建了我的应用程序并创建了一个ipa,但是当我想在testflightapp 上上传它时,它给了我这个错误:

Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?

我在构建设置中添加了配置文件,如下图

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

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

任何帮助将不胜感激。

【问题讨论】:

    标签: ios xcode maven-plugin ipa


    【解决方案1】:

    我将构建系统更改为旧版构建系统,并且已解决。 要更改它,请转到文件 -> 工作区设置

    【讨论】:

    • 我需要为 phonegap v8.0.0 应用程序执行此操作。谢谢!
    【解决方案2】:

    这是一个老问题,但可能对其他人有所帮助。

    从屏幕截图中,我看到您选择了 iPhone 设备而不是 通用 iOS 设备,这就是它给您提供配置文件错误的原因。

    选择通用 iOS 设备,然后构建项目。

    我收到了这个错误,它引起了我的注意。

    【讨论】:

      【解决方案3】:

      我发现了问题所在。我使用了来自 maven 目标的错误 ipa 文件。我从这条路径使用 ipa:

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

      我不得不使用这条路

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

      这是一个愚蠢的错误。

      【讨论】:

        【解决方案4】:

        确保在创建 .ipa 文件时,您必须选择 Generic iOS Device 作为 Target

        /i.stack.imgur.com/LsqBS.png

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2012-04-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-03-20
          相关资源
          最近更新 更多