2017-01-27 1 views
0

프로젝트에 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 
+0

'pod repo update --verbose'의 출력을 게시 할 수 있습니까? – JAL

+0

다음을 확인하십시오 : http://stackoverflow.com/questions/32079263/pod-googlemaps-not-working –

+0

'목표'관심사 'do' 다음에 "end"단어를 생략했습니다 .... 당신은 3 " 목표 "명령과 오직 두 개의"끝 "명령 –

답변

1

문제를 해결 한 brew를 통해 다시 설치하는 this approach을 사용하십시오.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
sudo gem uninstall cocoapods 
brew install cocoapods --with-brewed-curl --with-brewed-openssl 
1

:

source 'https://github.com/CocoaPods/Specs.git'

내가 볼 수 있습니다이 경우입니다 귀하가 나열한 오류로 인해 :

Updating spec repo `.git` 
[!] 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` 
+0

도움이되지 않습니다. – Vladius001

+0

제 말은, Podfile이 없이는 확실히 망가졌고 당신의 질문이 당신의 질문을 업데이트 한 것을 볼 수 있습니다. – bdrelling

+0

네 말이 맞아. 감사. – Vladius001

관련 문제