Xcode 8: Preparing Archive Takes Forever

Xcode 8: Preparing Archive takes forever

I found the solution:

  1. Open Keychain
  2. Search for AppleID certificates (I found 1300+ of them)
  3. Delete all of them

Enjoy your fast-blast building with Xcode 8+!
It seems like this is an issue with automatic signing feature from Xcode8.

XCode Product-Archive never finish

Fix the issue finally. It includes my code's problem and XCode bugs.

I update XCode to 8.3.3 and archive the app again, instead of processing forever, it shows this error

Command failed due to signal: Segmentation fault: 11

Refer to this question and this answer, I reach a function and find out that the issue come from one statement.

viewModel.willDestroy(additionalInfo: ["text": text])

And this is what my ViewModel and its parent class look like

// ViewModelBase Class
func willDestroy(additionalInfo: Dictionary<String, Any>) {
...
}

// ViewModel Class
override func willDestroy(additionalInfo: Dictionary<String, Any>? = nil) {
...
}

The signature of willDestroy in ViewModel does not match with its parent is the core issue of this question. After updating the signature, my app can finally be archived in XCode 8.3.3.

Bitcode Compile During Archive Never Finishes

I let this run for a long time (basically while I went out shopping). When I came back it was done. So for whatever reason this just takes a really long time to do.

That said, it was also the incorrect action. The way you add testers to TestFlight since Apple bought it is different. Now, instead of exporting and uploading an IPA file, you have to submit it to the store and let it be reviewed by Apple before you can add testers.

Xcode 11 stuck on archiving

This could help (I was having an issue with SwiftSoup, another CocoaPod). I was experiencing inexplicable hangs while trying to get Xcode 11 to archive my app (even at the command line). This is not meant to be a permanent fix, but rather a temporary workaround (in other words, we shouldn't have to do this to get a problematic library to build)!

Add this to the bottom of your Podfile and re-run pod install.

post_install do |installer|
installer.pods_project.targets.each do |target|
next unless target.name == '<NAME OF POD>'
target.build_configurations.each do |config|
next unless config.name.start_with?('Release')
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
end
end

Then try to archive your project. If that doesn't work… perhaps try messing around with other compiler optimization settings?

Swift / XCode compiling Archive takes 25 minuts for a very small App

If the array is that huge, you should not hardcode it. Better use another approach like reading a CSV/JSON file or CoreData. However, the latter might be already overkill.

Another approach would be: if the array is that predictable like you are showing it, then generate it online (i.e. at run-time) and not offline.



Related Topics



Leave a reply



Submit