App crashes on iPhone 6, iOS 12.5 while testing in device using Xcode 13.2

3.5k Views Asked by At

Console:

dyld: Symbol not found: ___chkstk_darwin
  Referenced from: /private/var/containers/Bundle/Application/6A606806-B567-4237-9B63-561126BF5E96/Appname.app/Frameworks/libswift_Concurrency.dylib (which was built for iOS 13.0)
  Expected in: /usr/lib/libSystem.B.dylib
 in /private/var/containers/Bundle/Application/6A606806-B567-4237-9B63-561126BF5E96/Appname.app/Frameworks/libswift_Concurrency.dylib

the app is running smoothly in the simulator with iOS 12.4

I tried making libswift_Concurrency.dbt optional. It did not stop the app from crashing.

5

There are 5 best solutions below

4
On

I encountered the same issue today, the issue was weird because everything just worked well before today. After some checks, I found that my system automatically updated Xcode from 13.1 to 13.2 last night. The Xcode 13.2 Release Notes shows that Xcode 13.2 has a compiler issue about libswift_Concurrency.dylib library, and it provides a Workaround method to resolve, but I found out the method doesn't work for me after I tried it.

I still don't know the reason which causes this issue, but I did make my project run on my iphone6 again by rollback Xcode to the version of 13.1 .

If your issue also caused by the update of Xcode, you can try this method. Download here: Xcode13.1

1
On

You probably installed Xcode 13.2 from the App Store. Don't. There are bugs in that version. Go to developer.Apple.com and download Xcode directly from there.

5
On

Xcode 13.2.1 claims it resolves this issue (see the release notes) - in fact the issue presists.

1
On

For iOS 12-12.5: use Xcode 13.1 and update your Pods (i.e. last versions for Realm) (bitcode is enabled by default). Xcode 13.2.1 still crashes on device with iOS 12 but runs fine on simulator.

0
On

Douglas Gregor confirmed that Xcode 13.3 beta 1 fixes the issue.

Personally, I'll use Xcode 13.1 and then use Xcode 13.3 when the final release comes out.