Not being able to execute unit tests on M1 mac

Hey people, I recently switched to a macbook pro M1 from an intel one, and I'm not able to run unit tests on the M1, it builds, but as soon as it runs it just pauses as you can see in the screenshot and if I try to continue the execution it just keeps stopping there. I also tried creating a new test target on the M1 laptop but when I execute it the same things happens. backtrace:

 * frame #0: 0x0000000204a6145e dyld`__shared_region_check_np + 10
  frame #1: 0x0000000204a3b2e4 dyld`dyld3::reuseExistingCache(dyld3::SharedCacheOptions const&, dyld3::SharedCacheLoadInfo*) + 30
  frame #2: 0x0000000204a3b241 dyld`dyld3::loadDyldCache(dyld3::SharedCacheOptions const&, dyld3::SharedCacheLoadInfo*) + 1857
  frame #3: 0x0000000204a39156 dyld`dyld4::SyscallDelegate::getDyldCache(dyld3::SharedCacheOptions const&, dyld3::SharedCacheLoadInfo&) const + 58
  frame #4: 0x0000000204a2325f dyld`dyld4::ProcessConfig::DyldCache::DyldCache(dyld4::ProcessConfig::Process&, dyld4::ProcessConfig::Security const&, dyld4::ProcessConfig::Logging const&, dyld4::SyscallDelegate&) + 469
  frame #5: 0x0000000204a22481 dyld`dyld4::ProcessConfig::ProcessConfig(dyld4::KernelArgs const*, dyld4::SyscallDelegate&) + 105
  frame #6: 0x0000000204a20486 dyld`start + 310

Replies

I also tried creating a new test target on the M1

Test target? Or a new project with a test target?

The reason I ask is that the code is Intel but a new project should be set up to run the code natively. So I recommend that you start by creating a new project, one that includes tests, to see if that works.

Also, are you building a macOS product? Or an iOS one?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"