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

zee
  • 656
  • 2
  • 7
  • 30

7 Answers7

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

JerryH
  • 111
  • 1
  • 2
  • 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. – u2Fan Dec 12 '16 at 15:05
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.

Moelbeck
  • 591
  • 2
  • 7
  • 29
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

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.

Sreenath S
  • 669
  • 6
  • 9
0

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

Alberto M
  • 1,608
  • 1
  • 18
  • 42
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.

Wajid Ali
  • 39
  • 6
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."

Rick
  • 3,298
  • 3
  • 29
  • 47