gpt4 book ai didi

ios - 用于 react native 地理定位的 podspec 设置

转载 作者:行者123 更新时间:2023-11-28 19:27:07 24 4
gpt4 key购买 nike

抱歉这个菜鸟问题,但我真的不知道如何为 RN 的地理位置设置最后一行:

如果您将 CocoaPods 用于 React Native,请确保包含 RCTGeolocation 子 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

最佳答案

以下是您应该在 podfile 中添加的内容:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
'RCTGeolocation',
]

然后运行pod install

关于ios - 用于 react native 地理定位的 podspec 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52048928/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com