Running Simulator on Xcode 13 crashes 'about_with_payload'

Hello,

Having a bit of an issue with my application since updating to Xcode 13. Whenever I try to run on a Simulator, I get a signal SIGARBT error. I have done a backtrace and get the following output:

 * frame #0: 0x0000000202a4d0ce dyld`__abort_with_payload + 10
  frame #1: 0x0000000202a631cf dyld`abort_with_payload_wrapper_internal + 80
  frame #2: 0x0000000202a63201 dyld`abort_with_payload + 9
  frame #3: 0x000000010b0d0060 dyld_sim`abort_with_payload + 26
  frame #4: 0x000000010b09008b dyld_sim`dyld4::halt(char const*) + 375
  frame #5: 0x000000010b08cb15 dyld_sim`dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 2807
  frame #6: 0x000000010b08cd3f dyld_sim`_dyld_sim_prepare + 379
  frame #7: 0x0000000202a0db24 dyld`dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1265
  frame #8: 0x0000000202a0c6de dyld`dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
  frame #9: 0x0000000202a0c4b4 dyld`start + 388

The project is building fine, when I run the application on my iPhone device it is also running fine, although I have left my phone on iOS 14. Too nervous to update it as that is the only way I can develop at the moment.

I have the following specs:

  • Macbook Air M1
  • macOS Monterey v12.0.1
  • Xcode 13.1

I downgraded to Xcode 12 last week and it continued to run fine on the simulator, as it did before, I have since re-updated to Xcode 13 as I need to get it working with iOS 15, but cannot get it to run on the simulator.

I have done all of the arm64 exclusion on the project, as I needed to do that in order to get it working on Xcode 12 with the M1.

Has anyone else experienced this? Does anyone understand the backtrace better than I do?

Many thanks in advance!

I also get this error above the backtrace, may be a red herring:

dyld[37405]: Symbol not found: _$s9CryptoKit12SHA384DigestV10Foundation15ContiguousBytesAAMc  Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/StoreKit.framework/StoreKit  Expected in: /Users/adam.yeardley/Library/Developer/Xcode/DerivedData/Snow-hdxtlwiuhskougfkstsctfyvfusz/Build/Products/Debug-iphonesimulator/CryptoKit.framework/CryptoKit Symbol not found: _$s9CryptoKit12SHA384DigestV10Foundation15ContiguousBytesAAMc  Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/StoreKit.framework/StoreKit  Expected in: /Users/adam.yeardley/Library/Developer/Xcode/DerivedData/Snow-hdxtlwiuhskougfkstsctfyvfusz/Build/Products/Debug-iphonesimulator/CryptoKit.framework/CryptoKit

Accepted Answer

I have done all of the arm64 exclusion on the project, as I needed to do that in order to get it working on Xcode 12 with the M1.

That is almost certainly wrong, and makes an excellent place to focus on in order to resolve this crash. Please see other forums threads about architecture exclusion and why you shouldn't be doing that for simulator support on Apple silicon Macs.

Running Simulator on Xcode 13 crashes 'about_with_payload'
 
 
Q