Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.2 hangs during Archive on arbitrary Task

This question has been asked before with prior Xcode versions:

Their solutions were:

  • Remove armv7 from Valid architectures
  • Change debug information format to DWARF instead of DWARF with dSYM File

I have tried all of these but the archiving still gets stuck at a particular task, always the same task number.

I have looked into the report navigator, and their are issues. But just warnings. There is one error "FontAwesome" build target, which doesn't say much. But the app use to build with version 10.1

like image 258
Alexander Avatar asked Mar 27 '19 11:03

Alexander


People also ask

What does archive in Xcode do?

It archives your Xcode project by running the xcodebuild archive command and exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared and installed on test devices, or uploaded to App Store Connect.

How do I change the archive name in Xcode?

Go to Product -> Scheme -> Edit Scheme in the list on the left select Archive and you will get a form with text box Archive Name where you can make your change.

How do I archive in Xcode 12?

When you choose Product > Archive, Xcode creates an archive of your app that will appear in the Archives organizer. If the Archives organizer reports your archive as an app archive, then you can validate or distribute it.


2 Answers

I was able to work around this by EITHER changing my Optimization Level in Release to "No Optimization" OR by changing Compilation Mode from "Whole Module" to "Incremental".

like image 97
Raymond Avatar answered Oct 23 '22 21:10

Raymond


For those that come across this issue, it was because of FontAwesome. I had installed it via CocoaPods. Not sure what the issue was, but I manually installed it into the project and it resolved the issue.

like image 20
Alexander Avatar answered Oct 23 '22 20:10

Alexander