xcode 未找到 -lRCTGeolocation 的库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/57013480/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
library not found for -lRCTGeolocation
提问by ?brahim Can KALYA
Have installed react-native-firebase & and i'am using my project.xcworkspace for getting build on iOS with Xcode that was fine when I installed only auth & core packages. When i installed messaging package I get the error "library not found for -lRCTGeolocation" anyway. Some could help me?
已安装 react-native-firebase & 并且我正在使用我的 project.xcworkspace 使用 Xcode 在 iOS 上进行构建,这在我只安装了 auth & 核心包时很好。当我安装消息包时,无论如何我都会收到错误“找不到 -lRCTGeolocation 的库”。有人可以帮我吗?
react-native: 0.60.3 react-native-firebase: 5.5.4
反应本机:0.60.3 反应本机火力基地:5.5.4
Thansk in advance.
提前致谢。
I delete the messaging reference from pod file I delete pods folder & podfile.lock file re installed pods, clean the build but didn't solved.
我从 pod 文件中删除了消息引用我删除了 pods 文件夹和 podfile.lock 文件重新安装了 pod,清理构建但没有解决。
回答by Steve Alves
The geolocation module isn't a part of the react-native core module anymore since de 0.60 version (cf: https://facebook.github.io/react-native/blog/2019/07/03/version-60)
从 de 0.60 版本开始,地理定位模块不再是 react-native 核心模块的一部分(参见:https: //facebook.github.io/react-native/blog/2019/07/03/version-60)
For it, you have to replace with the https://github.com/react-native-community/react-native-geolocationand delete the RCTGeolocation on the Libraries folder of your xcode project
为此,您必须替换为https://github.com/react-native-community/react-native-geolocation并删除 xcode 项目的 Libraries 文件夹中的 RCTGeolocation
回答by ?brahim Can KALYA
downgrading react-native version to 0.59.10, deleting pods folder, podfile.lock & my project.xcworkspace and regenerating via pod install fixed my problem
将 react-native 版本降级到 0.59.10,删除 pods 文件夹、podfile.lock 和我的 project.xcworkspace 并通过 pod install 重新生成修复了我的问题