dyld[1113]: Library not loaded: @rpath/lib/libswiftCoreGraphics.dylib
Referenced from: <2432AA10-C4BA-31BD-A431-D32CA47C636D> /private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/MyAppName.debug.dylib
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/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file), ‘/private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file), ‘/private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/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/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file), ‘/private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file), ‘/private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/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/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file), ‘/private/var/containers/Bundle/Application/81AB71D9-5B1C-4FA8-931A-CC632FCF4E93/MyAppName.app/Frameworks/lib/libswiftCoreGraphics.dylib’ (no such file)
Xcode16 crash on launch: dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib
2
Answers
This is a great question, I’ve encountered this error on Xcode 16 Beta too.
It’s an Xcode configuration issue and Apple engineers are looking into it: https://forums.developer.apple.com/forums/thread/756658
The workaround is to bump iOS deployment target to 13.
It’s works for me, iOS deployment target to 13.