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

8

16

I've included screenshots of the full error messages I'm getting. This happens when I try and submit my app to iTunes Connect. I don't get any errors when running the app.

First Error

Second Error

Thimbu answered 20/2, 2015 at 3:45 Comment(4)
Did you find a solution for this? I'm getting the exact same error.Tetanic
Im having the same error, did you find a solution ?Pelerine
#30419619Homogony
I am getting the same error.Kalasky
P
3

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.

Pelerine answered 9/3, 2015 at 13:48 Comment(0)
P
5

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

Pallette answered 10/8, 2015 at 16:42 Comment(1)
I was getting this error, too. It turned out that a framework I was including had set its own "Always Embed Swift Standard Libraries" in Build Settings to "Yes". Acquiring a build with that turned off cleared the error for me.Bold
P
3

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.

Pelerine answered 9/3, 2015 at 13:48 Comment(0)
C
1

What helped me, that I made my framework in the Target of a project in the Framework, Libraries and Embedded Content -> Do not Embed.

enter image description here

Convalesce answered 29/4, 2021 at 18:24 Comment(0)
G
0

I too faced same issue,

Step 1: See while copying .Framework you had wrongly copied(dragged) the framework in GoogleMaps.bundle or some other .bundle extension.

Step 2: If some other framework is present in .bundle resource, if present then remove that framework if not at all required, else drag out of that .bundle.

Step 3: If .framework is not present, then check in all .bundle resource, if .framework is being present, if present then remove that framework if not at all required, else drag out of that .bundle.

Step 4: Then clean and build the project.

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

Gaffer answered 14/3, 2017 at 11:28 Comment(0)
B
0

our bundle had a special character with an accent, removing that fixed the problem.

Brooch answered 2/12, 2020 at 11:14 Comment(0)
S
0

What worked for me was using the XCode auto-update settings for the project in the show issues navigator. When I updated 2 settings from there the project build successfully and even uploaded to the TestFlight.

Someday answered 14/7, 2021 at 10:55 Comment(0)
N
0

I just experienced this in Xcode 13. We have some of our Swift code in separate modules (separate targets in the Xcode project), and one of those targets referenced a couple other modules in the same project. It had them set to "Embed & Sign" in the target General Info tab. I set that to "Do Not Embed."

But that was only part of the solution. I got a complaint about "There is more than one bundle with the CFBundleIdentifier value under the iOS application . With error code STATE_ERROR.VALIDATION_ERROR.90685"

The solution to this was to create a Framework target in Xcode, move all the shared (static) SPM dependencies to that, remove them from any other targets, and then add the new framework to the targets that need them, being sure to select "Do Not Embed."

Nymph answered 13/1, 2022 at 1:16 Comment(0)
Q
0

In my case the issue started happening when I migrated from CocoaPods to SPM. There were 3 precompiled frameworks throwing this error, the 3 of which were from Google/Firebase.

In my case I was lucky enough to be able to remove the FirebaseAnalyticsSwift from my SPM definition and that made the error go away, but that was only possible because I wasn't actually using the Firebase analytics anymore. I couldn't find the actual root cause of the issue otherwise.

I hope this helps someone though 😅

Quintie answered 3/5 at 5:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.