I have a React-Native App that I am trying to build to iOS using Xcode. When I build to my iPhone 12 Mini (iOS 17.4.1), the app works perfectly. When I build to my iPhone 7 Plus (iOS 15.8.2), the app pauses running immediately, and Xcode displays the following in the log:
dyld[935]: Symbol not found: (_JSGlobalContextSetInspectable)
Referenced from: '/private/var/containers/Bundle/Application/2579192B-74C5-4B54-AA59-948C49A4A7CA/MANHUNT2.app/MANHUNT2'
Expected in: '/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore'
The app used to work perfectly on both phones, but this error has been happening recently, and I am unsure of the cause. Cleaning build folder and deleting derived data has not fixed the issue.
Xcode: Version 15.3
React-Native: 0.73.6
Working Phone: iOS 17.4.1
Non-Working Phone: iOS 15.8.2