xcode14:Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib

Xcode13.4.1 is running properly, but after upgrading Xcode14, the debugging device reports an error: Library not loaded: / usr/lib/swift/libswiftCoreGraphics dylib, I according to the online solutions are tried, can't solve my problem, problem is ios10.3.3 equipment, unable to debug, also is unable to start the application success after packaging, Is this a problem with xcode14 itself?

Answered by DTS Engineer in 733147022

The underlying issue creating these crashes on older OS versions is resolved in Xcode 14.1 RC, available today. For apps built using any version Xcode 14 prior to Xcode 14.1 RC, and experiencing a crash at any point in the app's lifecycle — during debugging or after release to your customers, you can resolve this crash by rebuilding your app with Xcode 14.1 RC, and if your app was released to customers who are then experiencing the crash, releasing an update built with Xcode 14.1 RC to the App Store. You can remove any prior workarounds used to mitigate the crashes.

If your app experienced this crash after uploading to the App Store using Xcode 13 with bitcode enabled, your app experienced the crash due to the App Store processing your app's bitcode with the latest available release of Xcode, which was Xcode 14. Once Xcode 14.1 is released, the App Store's processing of bitcode moves forward to Xcode 14.1 as the latest Xcode release, so your app with bitcode will no longer be affected. However, since bitcode is deprecated starting with Xcode 14, you can also leave the prior workaround in place, disabling bitcode for the app entirely.

If you continue to get any remaining crashes after updating your app per the above advice, please let us know through Feedback Assistant and by sharing the FB number here.

Same issue here. Xcode 14.0 + iOS12.0. Termination Description: DYLD, Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib

No problems with Xcode 13.4.1 + iOS12.0

Accepted Answer

If you run your app from the Home screen on the 10.3.3 device, does it crash? If so, please grab the resulting crash report and post it here.

For advice on how to post your crash report, see Posting a Crash Report.

Share and Enjoy

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

We're observing the same issue on Xcode 14 iOS 12.1.4. No crash if deployed from Xcode 13

Facing the same issue. Will leave a reply with the details we have noticed so far.

We've been facing the same issue since the first Xcode Betas until the public release that we recently released.

I have tried creating a sample app with Xcode 14 and it does not happen with that, hence my suspicion is that there is something specific with our project that is causing the package produced by Xcode 14 to have this issue. The same project with Xcode 13 does not demonstrate this issue and the packages generated using that work fine on iOS versions below 12.2.

Error seen in Xcode console:

I have compared the binaries created by both Xcode 13.4 and 14 and following were my observations.

Command run: `otool -LD

With Xcode 13.3.1 (13E500a) when we search for the phrase libswiftCoreGraphics we notice only one occurrence.

With Xcode 14 when we search for the phrase libswiftCoreGraphics we notice two occurrences. With the /usr/lib/swift/ one being the same occurrence that Xcode shows in console.

Crash log from device:

DTS ticket ID: 101794668438

Feedback assistant: FB10905587

TSI ticket: 808801996

Sounds like the same issue as mentioned here.

I filed a feedback, FB11512459, but have not heard anything as of yet.

-Ryan

I am using Xcode 13.4.1 and the submitted app store version keeps crashing in iOS 9.3.5 and iOS 10+. but Adhoc builds working fine only App Store build getting crashing.

Dyld Error Message: Dyld Message: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib Referenced from: /var/containers/Bundle/Application/85C5C95A-90F7-4B4C-B84A-93B92BD967CB/Magzter6.app/Magzter6 Reason: image not found Dyld Version: 390.7

Apple Feedback complaint No. : FB11515032 reported on Sep 15, 2022 at 11:08 AM

I have the same problem with app submitted to TestFlight and running on iOS10.3.4. using xCode 13.4.1 to build App run fine started from xCode (debug or release mode) on the device App run fine on device under iOS 15.7 even with TestFlight Problem is there since at least 01/09/2022

Feedback : FB11529856

This is the crash log for my 10.3.3 device

Can I please ask the question author to not mark it as accepted/resolved so that it does not affect the visibility of the issue?

I accidentally touched it. I can't cancel it yet

TSI ticket: 808801996

That’s been routed to one of my colleagues, so I’m going to defer to them in this matter.

vijaytholpadi, once you get an answer via that TSI, I’d appreciate you posting a summary here.

Share and Enjoy

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

Is this the same issue as mentioned here?

Almost certainly.

Since yesterday I’ve learnt more about this issue, although I still don’t have a full answer for you. All I can say right now is that, as far as we can tell, this is an issue on the Apple side of things (r. 100194032).

Share and Enjoy

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

Crash from one of our users with: "Library not loaded: /usr/lib/swift/libswiftCoreData.dylib" Binary was built with Xcode 13.4.1. And we don't use CoreData at all.

It looks like an AppStore rebuilds app with bitcode using Xcode 14 toolchain. 🧐

xcode14:Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib
 
 
Q