pod搜索‘MapboxMaps’可以找到这个库。 然后,执行“pod repo update”。 然后,执行“pod install”。 遇到以下问题。
[!] Unable to find a specification for `MapboxMaps`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
pod --版本 1.15.0
宝石-v 3.5.5
红宝石-v 红宝石 3.2.2
尝试升级 Ruby、更新 CocoaPods 并刷新存储库,但问题仍然存在。
platform :ios, '11.0'
source 'https://github.com/mapbox/mapbox-maps-ios.git'
target 'mapboxDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for mapboxDemo
pod 'MapboxMaps'
end
pod 文件信息