Xcode creates wrong IPA folder structure
Asked Answered
I

6

11

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.

Ivette answered 12/11, 2014 at 5:16 Comment(0)
B
12

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.

Bailar answered 21/11, 2014 at 15:56 Comment(0)
L
9

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.

Loathly answered 25/11, 2014 at 4:21 Comment(0)
B
7

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

Bedstraw answered 12/2, 2015 at 15:51 Comment(0)
A
1

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.

Abert answered 25/11, 2014 at 12:55 Comment(1)
I think this depends on the build settings as noted by other answers. However thanks for the suggestion. However, as a side note this needs to be added as a comment not an answer. CheersIvette
A
0

Here's what I did - instead of "zipping up" the project file, go into XCode (I'n on version 7.x), and go to PROJECT >> ARCHIVE - and archive that sucker.

It auto archives as an IPA in the proper structure.

The way I did it before was by ZIPPING it up from the FINDER app, and then changing the extension to IPA -- DONT DO THAT.

Once it's archived (from within XCode), it shows up under ORGANIZER, so go there to submit it to apple as a new build.

This was my fix after half of night of trying to submit with Application Loader and it worked fine - had a dozen other issues prior to this but each issue was knocked off the list one by one, so maybe it wouldn't have submitted had I not fixed those, but the above process submitted the first time I tried it - and that was after using Application Loader probably 15 times with no dice.

Akmolinsk answered 5/2, 2016 at 2:42 Comment(0)
F
0

I just Clean (Command + Shift + K) the project and the error has not appeared

Flameout answered 15/2, 2016 at 12:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.