Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode creates wrong IPA folder structure

Tags:

ios

xcode6

ipa

mdm

We normally have 'Payload' folder as root once we unarchive IPA files. However, suddenly Xcode has started creating IPAs with 'Applications' folder as root. Hence MDM is failing to locate files.

Has anyone has faced a similar issue? We are running Xcode version 6.1.

like image 532
TeaCupApp Avatar asked Nov 12 '14 05:11

TeaCupApp


4 Answers

Make sure the key "LSRequiresIPhoneOS" in the info.plist has the value "YES", and make sure the key has the correct case, i.e., IPhone versus Iphone. Earlier versions of Xcode were not as picky about that.

like image 88
picciano Avatar answered Nov 15 '22 20:11

picciano


I assume your Deployment Target is 8.0

  1. Validate your Settings from the Editor Menu

enter image description here

  1. Double check info.plist for the following entries.

enter image description here

CFBundleInfoDictionaryVersion | String | 6.0
LSRequiresIPhoneOS | Boolean | YES

Without it, the archive export will build an iOS IPA file with the OSX Applications folder.

like image 29
carlodurso Avatar answered Nov 15 '22 22:11

carlodurso


I followed the steps in this post and other posts (adding CFBundleInfoDictionaryVersion and LSRequiresIPhoneOS to .plist file) but nothing worked. Here is what happened on my end:

I renamed my project and for some reason, the rename seem to "unlink" my .plist file from my project. I had to go to the project - Info tab and edit the list of parameters there. Add

CFBundleInfoDictionaryVersion | String | 6.0
LSRequiresIPhoneOS | Boolean | YES

Under

Custom iOS Target Properties

enter image description here

like image 42
mogile_oli Avatar answered Nov 15 '22 22:11

mogile_oli


I have created .xarchive file using xcode 6.1 and then created .ipa file as per my answer here How to convert .xcarchive to .ipa for client to submit app to app store using Application Loader.

Now i have unarchieved my ipa file and it is having same folder structure as normal one, i.e. folder named "Payload" is available(no any Applications file). Also MDM is also working fine with that. Please check the way you have used, or else try this way.

like image 31
Mehul Thakkar Avatar answered Nov 15 '22 21:11

Mehul Thakkar