当我尝试使用低于 ios 13.3 的模拟器在 xcode 中构建应用程序时,应用程序会中断,但如果我尝试使用高于 13.3 的版本,应用程序可以正常工作。
错误:模拟器(Iphone 8 Plus-12.0)
JSCRuntime::JSCRuntime()
: JSCRuntime(JSGlobalContextCreateInGroup(nullptr, nullptr)) {
JSGlobalContextRelease(ctx_);
}
com.facebook.react.JavaScript (12): EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
Error in : Emulator(Iphone 8 Plus-12.0)
Works in : Emulator(Iphone 8 Plus-14.4)
我已经尝试了其他帖子中的不同解决方案,例如:
Go to project ios in terminal and try with
----> Delete folder Pods and Podfile.lock
----> Run : sudo arch -x86_64 gem install ffi
----> arch -x86_64 pod install
--------
Open project with Xcode
----> Select Target
----> Go build Settings
----> Search Excluded Architectures
----> Add Any SDK and Any IOS Simulator SDK with arm64
--------
它是 React Native 的基础项目,我用 npx react-native init 创建 General information ---> Deployment info --> IOS 10.0 only check in Iphone.我还启用了 xcode 的 rosetta 选项,并且我尝试了上述每个步骤
我需要帮忙!!谢谢!