프로젝트에 iOS 용 GoogleMap SDK를 설치하고 싶습니다. 하지만 포드를 설치하면 오류가 발생합니다.CocoaPod와 함께 GoogleMaps를 설치할 수 없습니다.
[!] Unable to find a specification for `GoogleMaps`
pod repo remove master ; pod setup
도움이되지 않습니다. pod repo update --verbose
Updating spec repo `.git`
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git fetch origin
From https://github.com/CocoaPods/Specs
42723a4..830f47f master -> origin/master
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git rev-parse --abbrev-ref
HEAD
HEAD
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git reset --hard origin/HEAD
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[!] CocoaPods was not able to update the `.git` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
내 podfile 다음과 같이 당신은 Podfile의 상단에있는 사양의 REPO를 지정해야
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Interests' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Interests
pod 'GoogleMaps'
target 'InterestsTests' do
inherit! :search_paths
# Pods for testing
end
target 'InterestsUITests' do
inherit! :search_paths
# Pods for testing
end
end
'pod repo update --verbose'의 출력을 게시 할 수 있습니까? – JAL
다음을 확인하십시오 : http://stackoverflow.com/questions/32079263/pod-googlemaps-not-working –
'목표'관심사 'do' 다음에 "end"단어를 생략했습니다 .... 당신은 3 " 목표 "명령과 오직 두 개의"끝 "명령 –