iPhone App Submitting - Error ITMS-90171 Invalid Bundle Structure Can't Contain Standalone Executables

This issue for me was caused by including the framework in the bundle. Ie, I was copying the .framework file into the app bundle. This isn't necessary as the framework is statically linked against the main app binary.

Most likely, you have a folder containing the .framework that you copied into your project (like an "external" or "ThirdParty"). That folder should not have membership to any target.

Target should not be set

In your Frameworks folder itself, should be the actual .framework file with target membership for your app and "Required"

Target should be set


I had the exact same error for my application, and I was not able to find any reason from the information. The difference was, though, that I got it for all my .dll files.

After some time, I saw that under IOS Bundle Signing - Custom entitlements it tried to point to a file that did not exist. I just removed that, and it stopped giving errors.

Not sure if it helps you too, but it worked for me.