This question has been asked before with prior Xcode versions:
Their solutions were:
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
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.
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.
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.
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".
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With