Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 891
gwest7 Avatar asked Nov 02 '25 20:11

gwest7


2 Answers

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.
like image 133
Vadim F. Avatar answered Nov 04 '25 12:11

Vadim F.


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.

like image 22
gwest7 Avatar answered Nov 04 '25 12:11

gwest7