Invalid binary error

An update for an existing application that I had was presented this morning. The update was minor, but no changes occurred. Apple has now sent me this message with a message ..

The following issues need to be addressed: ..

Invalid package structure. The package contains the package with the following problem: the IPA package does not contain the payload directory.

How to fix it?

+5
source share
3 answers

Well, my answer was deleted because it was not the answer to the question. I donโ€™t have enough points to comment on your question (what I tried to do because I obviously have no answer - the same problem as you, and trying to find out why we get this Invalid Binary error)

As I said in my first post: I will keep you posted. Today I created a new Xcode project with the same bundleID as the application that I have been trying to download for a week. It undergoes a preliminary validation on the server side, and I received a letter saying that "Waiting for a review." It answers one question that I had from the very beginning: this is not a server problem (I thought Apple had some problems with the pre-check process). I tried to play with architecture in this new project (for example, I use the arv7 arch for my application due to some incompatibility with the libraries of the third part). Still checking server.

Then I tried to copy the Info.plist file from my application into a new sample project that passes the server check: BANG -> Invalid Binary !! This info.plist is quite old, used with Xcode 3.0. I tried to remove some optional keys from it: the binary code is still invalid. Then I compared the original and necessary keys with the new project info.plist file: bang! The value "CFBundleInfoDictionaryVersion" was empty. In the new project, the value is "6.0". I just set "6.0" for the CFBundleInfoDictionaryVersion key and the boom, it worked. I assume Apple servers are checking the info.plist file and need the correct CFBundleInfoDictionaryVersion to read the .plist file. And I think that this does not happen with Xcode 5.1.1, they should have updated their server among the releases of Xcode 5.1.1, thatโ€™s all.

God, I can't believe how stupid it was. It is a pity that Apple does not provide comprehensive feedback. Hope this works for you! Let me know!

+12
source

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

+5
source

It worked for me

Just add the following element to your Info.plist:

LSRequiresIPhoneOS | Boolean | YES

0
source

Source: https://habr.com/ru/post/974755/


All Articles