Invalid bundle structure - The app may contain only one executable file.

ToddB picture ToddB · Nov 27, 2013 · Viewed 11k times · Source

This question is similar if not identical but there is no solution. I've looked inside the archive and there's only one executable, so I am at a loss as to how to proceed. Any ideas greatly appreciates.

enter image description here

enter image description here

Answer

pkamb picture pkamb · Apr 25, 2015

Invalid Build Structure

The binary file 'YourApp.app/libYourLibrary.a' is not permitted.

Your app may contain only one executable file.

This error occurs when a static library file is mistakenly copied into the app bundle.

You should link the libYourLibrary.a static library via a Link Binary with Libraries build phase.

It should NOT be added to the target's Copy Bundle Resources build phase.