【发布时间】:2019-02-02 13:25:41
【问题描述】:
抱歉这个菜鸟问题,但我真的不知道如何为 RN 的地理位置设置最后一行:
If you are using CocoaPods for React Native, make sure to include the RCTGeolocation sub-podspec.
我已经有一个 podfile,因为我正在遵循 RNfirebase 库中的指南, 但不确定在哪里添加 RCTGeolocation。
这是我目前拥有的:
target 'Absent' do
# Uncomment the next line if you're using Swift or would like to use
dynamic frameworks
# use_frameworks!
# Pods for Absent
pod 'Firebase/Core', '~> 5.3.0'
pod 'Firebase/Messaging', '~> 5.3.0'
target 'AbsentTests' do
inherit! :search_paths
# Pods for testing
end
end
这是我第一次在 mac 上自定义项目并与 pod 文件交互。 任何指针将不胜感激:D
【问题讨论】:
标签: ios reactjs react-native cocoapods podspec