I just upgraded to Version 16.0 (16A242d) and unfortunately the App that used to run perfectly fine on Xcode 15 is now broken. It crashes right after showing the Launch Screen on the Simulator. Here's the formatted error message in the Console:
dyld[80159]: Library not loaded: @rpath/AppName-iOS.debug.dylib
Referenced from: <App ID> /path/to/AppName-iOS.app/AppName-iOS
Reason: tried: '/path/to/DerivedData/AppName-iOS.debug.dylib' (no such file),
'/path/to/CoreSimulator/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/AppName-iOS.debug.dylib' (no such file),
'/path/to/AppName-iOS.app/AppName-iOS.debug.dylib' (code signature not valid for use in process: Trying to load an unsigned library),
'/path/to/DerivedData/PackageFrameworks/AppName-iOS.debug.dylib' (no such file),
'/path/to/AppName-iOS.app/Frameworks/AppName-iOS.debug.dylib' (no such file),
'/path/to/CoreSimulator/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/AppName-iOS.debug.dylib' (no such file)
For some reason the Library is unsigned and I've checked all the settings with no luck.
Hello!
I had the same issue and I just figured the origin! My app entry point is in a package, so I have no swift file in my project (outside of the lib). I guess that's why AppName-iOS.debug.dylib doesn't exist.
I created an empty struct and now it works fine with Xcode 16.
I hope it helps,
Cédric