ios – SwiftUI app crashes on my iPhone but runs well on simulator


I built an app in SwiftUI and it runs properly on my iOS simulator, but when I try to run it on my iPhone 15 Pro, it crashes as soon as I open it. I am getting the following error:

warning: Module "/Users/MyName/Library/Developer/Xcode/iOS DeviceSupport/iPhone15,2 17.1.1 (21B91)/Symbols/usr/lib/system/libsystem_kernel.dylib" uses triple "arm64e-apple-ios17.1.0", which is not compatible with the target triple "arm64-apple-ios16.4.0". Enabling per-module Swift scratch context.

As well as the below:

enter image description here

Does anyone know what this means / how to resolve the issue?

I tried cleaning the build folder and re-installing the app multiple times with no luck.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img