我使用react-native-maps。对于android,它可以正常工作。但是在iOS上我遇到了错误。这是我的react-native和react-native-maps版本:
"react-native": "0.61.4",
"react-native-maps": "0.26.1",
对于iOS版本,我将这些行添加到PodFile
rn_maps_path = '../node_modules/react-native-maps'
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
在执行Pod安装时,我认为这个错误:
[!] Error installing GoogleMaps
[!] /usr/bin/curl -f -L -o /var/folders/j5/lh_7g8rd7hz0z825zpgj_r980000gn/T/d20200214-7843-xzq2gq/file.tgz https://dl.google.com/dl/cpdc/50f195591089b89e/GoogleMaps-3.2.0.tar.gz --create-dirs --netrc-optional --retry 2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
我不知道我的错误在哪里。