[XCode 16] Project won't run on XCode 16, libswiftCoreGraphics not found

dyld[766]: Library not loaded: @rpath/lib/libswiftCoreGraphics.dylib Referenced from: <EE7A75F9-1197-3E26-BCB1-4EC9A61C878A> /private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Coloring Book Reason: tried: '/usr/lib/system/introspection/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file)

Answered by Engineer in 790497022

This is an Xcode configuration issue that we'll be looking into. In the meantime, increasing the deployment target is a good workaround to continue testing with Xcode 16.

minimum deployment target is 12.0, after upgrade to 13.0, it works.

I am seeing this same crash when running XCode 16 on a macOS 14.5 (sonoma) host.

The minimum deployment for the project is macOS 10.13. There is nothing in the Xcode 16 release notes about macOS 13.0 being a required minimum deployment. so I don't think that is a solution.

I am seeing this same crash when running Xcode 16 on a macOS 14.5 (sonoma) .

This is an Xcode configuration issue that we'll be looking into. In the meantime, increasing the deployment target is a good workaround to continue testing with Xcode 16.

I am seeing this same crash when running Xcode 16 on a macOS 14.5 (sonoma) .

I try increasing the deployment target to 13.0 、15.0、16.0、17.0,and run 12pro device with 17.1.2 version. but it dost not work !

Yes same issue for me, our deployment target is 15.0 already

Yep, same deal. Minimum deployment target is 15.6 and I'm also getting this error.

Ah, I worked around it. You may need to increase the deployment target of all frameworks as well (such as cocoapods). The error logs showed to framework with the dylib issue, so I updated both of their deployment targets and that fixed the crash.

Same issues i have fetched my deployment target is 15.0 but still i am fetching same issue

Same error while my target is 15.0.

The issue is still happening. The recommended answer is not working.

This problem appears to be fixed in XCode 16 Beta 2.

I don't see any mention of the problem in the release notes but I have successfully compiled and run an application on an intel Mac with macOS Sonoma 14.5 and Xcode 16 Beta 2.

Same issue here with macOS Sequoia Developer Beta and Xcode 16 Beta2.

Change the deployment target is not useful.

[XCode 16] Project won't run on XCode 16, libswiftCoreGraphics not found
 
 
Q