5

An update for an already existing app I have was submitted this morning. The update was very minor barely any changes were made. Apple has now sent me this email stating..

the following issues must be corrected:..

Invalid Bundle Structure - Your package contains a bundle with the following issue: IPA bundle does not include a Payload directory.

How do I fix this?

4GetFullOf
  • 1,738
  • 4
  • 22
  • 47
  • Which Xcode version are you using to archive the binary and upload it? – Apurv Jun 16 '14 at 13:47
  • Also check the .ipa file in finder. Rename it to .zip. Unzip it. Check if payload folder is there or not. If payload is not there, archive again and upload it. If payload is there, upload it again. Its the problem while uploading. I had the same. Reuploading the binary solved the issue. – Apurv Jun 16 '14 at 13:49
  • @Apurv I'm using the 5.1.1 and i did try reuploading SEVERAL times haha unfortunately it didn't help. I can't find any file with a .ipa extension? what would the file name be called? also no payload folder either.. I have 9 apps currently in the app store and i checked all project folders none have a payload folder and can't find anything with .ipa extension..What is it i could be doing wrong? – 4GetFullOf Jun 17 '14 at 04:07
  • have you tried to re-archive the project again? – holex Jun 17 '14 at 08:21
  • @holex with every resubmission re-archived – 4GetFullOf Jun 17 '14 at 14:41
  • We are seeing the same thing, with a recent (forced) upgrade to XCode 5.1.1. The IPA file is created if you create an enterprise / adhoc version. https://developer.apple.com/library/prerelease/ios/qa/qa1798/_index.html – michael pan Jun 18 '14 at 23:06
  • @michaelpan i don't get the code signing part? am i suppose to use terminal? – 4GetFullOf Jun 19 '14 at 01:51

3 Answers3

12

Ok, my answer has been deleted because it was not an answer to the question. I do not have enough points to comment your question (that's what I tried to do because I obviously don't have the answer — just the same problem as you and trying to figure out why we're getting this Invalid Binary error)

As I said in my first post: I'll keep you up to date. Today, I created a new Xcode project, with the same bundleID as the app I try to upload for a week now. It passes through the server-side pre-validation and I received a mail saying it's "Waiting for Review". It answers one question I had since the beginning: It's not a server problem (I thought Apple had some issues with the pre-validation process). I tried to play with architectures on this new project (for example, I only use armv7 arch for my App because of some incompatibility with third-part libraries). Still passes the server validation.

Then, I tried to copy the Info.plist file from my app to the new sample project which passes the server validation: BANG -> Invalid Binary!! This info.plist is quite old, used since Xcode 3.0 I tried to remove some optional keys from it: still invalid binary Then, I compared the original and needed keys with a new project's info.plist file : bang! The "CFBundleInfoDictionaryVersion" value was empty. On a new project, the value is "6.0". I simply set "6.0" for CFBundleInfoDictionaryVersion key and boom, it worked. My guess is that Apple' servers are checking the info.plist file and needs a proper CFBundleInfoDictionaryVersion value in order to read the .plist file. And I think it's not happening since Xcode 5.1.1, they must have updated their server among with the release of Xcode 5.1.1, that's all.

Jeez, I can't believe how dumb it was. It's a shame that Apple does not provide a comprehensive feedback. Hope it will work for you! Let me know!

ldesroziers
  • 236
  • 3
  • 4
5

In my Info.plist, somehow my Application requires iPhone environment was set to NO. setting it to YES fixed this...

dOM
  • 555
  • 5
  • 14
0

This worked for me

Just add the following item in your Info.plist:

LSRequiresIPhoneOS | Boolean | YES

Sawan Cool
  • 158
  • 3
  • 13