问题
Hi guys I am using google maps and other libraries. I install every library using cocoapods, but when I install a library and update with command pod install
. I am getting this error:
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `GoogleMaps` required by `Podfile`
- `GoogleMaps (= 1.13.0)` required by `Podfile.lock`
Specs satisfying the `GoogleMaps` dependency were found, but they required a higher minimum deployment target.
Specs satisfying the `GoogleMaps (= 1.13.0)` dependency were found, but they required a higher minimum deployment target.
Here is my pod file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
pod 'GoogleMaps'
pod 'AFNetworking', '~> 3.0'
pod ‘Facebook-iOS-SDK’
pod 'TwitterKit'
platform :ios, '6.0'
pod 'REFrostedViewController', '~> 2.4'
回答1:
Change your podfile like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'GoogleMaps'
pod 'AFNetworking', '~> 3.0'
pod 'Facebook-iOS-SDK'
pod 'TwitterKit'
pod 'REFrostedViewController', '~> 2.4'
looks like platform: ios is changing from 8 to 6 because of redefinition
来源:https://stackoverflow.com/questions/36718468/how-to-update-google-maps-using-cocoa-pods