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

不问归期 提交于 2019-12-13 02:21:45

问题


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

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> 

Any help would be appreciated.


回答1:


I changed build system to Legacy Build System and it was resolved. To change it go to File -> Workspace Settings




回答2:


This is an old question but may help others.

From the screenshot I see you have selected iPhone device and not Generic iOS Device that's why it is giving you provisioning profile error.

Select Generic iOS device and then build the project.

I got this error and it catches my eyes.




回答3:


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

I had to use this path

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

It was stupid mistake.




回答4:


Make sure that while creating an .ipa file you must need to select Generic iOS Device as a Target

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



来源:https://stackoverflow.com/questions/26428519/invalid-ipa-missing-embedded-provisioning-profile-are-you-sure-this-is-an-ad-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!