我在Podfile中有这段代码
source 'https://github.com/CocoaPods/Specs.git'
target 'Kine' do
pod 'GoogleMaps'
pod 'GooglePlaces'
end
我想在终端中安装
cd /Users/-----
pod Install
我收到此错误
[!]在目标上自动分配版本11.0的平台ios,因为没有指定平台。请在Podfile中为此目标指定一个平台。请参阅https://guides.cocoapods.org/syntax/podfile.html#platform
。
在网站上我看到了iOS 10.6,但是当我在iOS 8.0或9.0或10中更改目标时,我在Xcode中没有iOS 10.6它再次无效并收到相同的错误
和libPods.a缺少(红色)
答案 0 :(得分:0)
请按照以下步骤操作:
sudo gem install cocoapods
platform :ios, '10.0' use_frameworks! target 'Kine' do pod 'GoogleMaps' pod 'GooglePlaces' end