使用 npm 安装最新版本的 Realm 后,当我尝试运行我的 react-native 应用程序时,我收到以下警告:
libRealmReact.a(GCDWebServers_vers.o)) was built for newer iOS version (8.0) than being linked (7.0)
构建失败,出现以下错误:
ld: targeted OS version does not support use of thread local variables in __ZN5realm4util13get_thread_idEv for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
react-native 文档没有任何关于如何将目标从 iOS 7 更改为 iOS 8 的信息。
有没有办法获得适用于 iOS 7 的 Realm 版本?
提前致谢!
最佳答案
这是一个由 https://github.com/realm/realm-js/pull/506 修复的错误.
关于ios - react-native 的 Realm 给出 IOS 版本警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38069721/