gwest7
gwest7

Reputation: 1653

Archive Export error: The archive contains nothing that can be signed

My app runs on devices and simulators. The app archives with no errors. When I try to export I get the following error:

export error message

The log file IDEDistribution.critical.log contains the following:

2017-07-07 07:40:03 +0000 [MT] Failed to generate distribution items with error: Error Domain=IDEDistributionErrorDomain Code=12 "The archive contains nothing that can be signed." UserInfo={NSLocalizedDescription=The archive contains nothing that can be signed., NSLocalizedRecoverySuggestion=Verify that your build process has compiled binaries and copied in bundled resources.} 2017-07-07 07:40:03 +0000 [MT] Presenting: Error Domain=IDEDistributionErrorDomain Code=12 "The archive contains nothing that can be signed." UserInfo={NSLocalizedDescription=The archive contains nothing that can be signed., NSLocalizedRecoverySuggestion=Verify that your build process has compiled binaries and copied in bundled resources.}

The contents of the .xcarchive: archive content

The .app also contains all the usual stuff.

I am sure there may be more information needed. Please ask and I will provide what I can.

Upvotes: 4

Views: 6309

Answers (6)

Ostoura
Ostoura

Reputation: 2543

I have fix it by removing the App name from under development assets, and it works for me finally on Xcode 15. enter image description here

Upvotes: 0

Animesh Singh
Animesh Singh

Reputation: 9282

I had similar error when I was resolving error occurred after shifting from Intel based mac to M1 based mac for a ReactNative based project. For resolving some fixes, I had to exclude the arm64 in the project build settings, but I also excluded it in the target. I removed the "arm64" from all schemes of the excluded targets of Excluded Architectures of the project target and rebuilt the code. It worked.

Upvotes: 1

Vadim F.
Vadim F.

Reputation: 1051

What fixed my issue was including arm64 in the app architecture,

In your Target -> Build Settings search for:

  1. VALID_ARCHS and make sure arm64 is included.
  2. search for Excluded Architectures and make sure arm64 is NOT mentioned there.

Upvotes: 8

Nike Kov
Nike Kov

Reputation: 13718

For me helped relaunching an Xcode. I think the problem is because all archives stored in a separate HDD and it was something with the access to it by Xcode.

Upvotes: 1

gwest7
gwest7

Reputation: 1653

Change the archive destination directory to a location on the local SSD (and not an external HDD).

I have not had this problem again after I did this and I recall having started running into the problem after I started trying to free up space on my mac.

Upvotes: 3

gwest7
gwest7

Reputation: 1653

At last! There may have been other issues too, but only after I changed the scheme container was I able to export. And I knew it had something to do with CocoaPods.

Before pod install your scheme may look something like this:

enter image description here

There are no other container options.

After pod install it will look like this:

enter image description here

Once I selected the Workspace container I started seeing a difference in the build and consequently the export worked.

Upvotes: 1

Related Questions