Xcode 8: Preparing Archive takes forever
I found the solution:
- Open Keychain
- Search for AppleID certificates (I found 1300+ of them)
- 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
What Is the Meaning of This Declaration
How to Change Height of Uitableviewcell Real-Time
Swift Array Append Overwriting Other Array Values
Alamofire: Sending JSON as Request Parameter
Converting a Vision Vntextobservation to a String
How to Pretty Print Swift Dictionaries to the Console
Save an Object in Nsuserdefaults and Realm
Opening a PDF Document When Clicking a Button
Waiting for Asynchronous Function Call to Complete
Swift:Non-Nil Optional Value Raising a Nil Exception
iOS App Submission and Beta Review Process
Launch a Local Notification at a Specific Time in iOS
Using Tesseract to Recognize License Plates
Swift - Segmented Control - Switch Multiple Views
Cordova: Start Specific iOS Emulator Image
Generics in Swift - "Generic Parameter 'T' Could Not Be Inferred