2017-01-05 16 views
0

私のシステムにココアポッドをインストールしているうちに、次のエラーが表示されます。ココアポッドをインストール中にエラーが発生しました

エラー: "[!]。master-1という名前のURL https://github.com/CocoaPods/Specs.gitとソースを追加することができませんあなたは~/.cocoapods/repospod repo addを経由して、手動で追加してみてくださいすることができます。"

は、

ポッドファイル:

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'Demo' do 
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 
    # use_frameworks! 

    # Pods for Demo 

    target 'DemoTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

    target 'DemoUITests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 
pod 'AZSClient' 
    pod 'CardIO' 
    pod 'Google/Analytics' 
    pod 'OpenTok' 
    pod 'THCalendarDatePicker', '~> 1.2.6' 
end 
+0

あなたのポッドファイルを含めることはできますか? – dpassage

+0

この場合、podをアンインストールして最新のポッドをインストールしてみてください。 –

答えて

0

私は同じ問題を持って、いくつかの時間それだけで必要なココアとココアポッドの不一致バージョンで起こりました。次のように

私のソリューションは、次のとおりです。

pod repo remove master 
pod setup 
pod install 

あなたはまだ私に知らせて、その後すべての問題に従っている場合。

は、これであなたのポッドファイルを変更し

:あなたがターゲットにターゲットを使用することはできません

`# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'Demo' do 
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 
    # use_frameworks! 

    # Pods for Demo 

pod 'AZSClient' 
    pod 'CardIO' 
    pod 'Google/Analytics' 
    pod 'OpenTok' 
    pod 'THCalendarDatePicker', '~> 1.2.6' 
end` 

    target 'DemoTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

    target 'DemoUITests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 
+0

pod repo remove masterコマンドとpod setupコマンドが正常に実行されました。しかし、ポッドインストールコマンドの実行結果は次のようなエラーになります:[!] 'master-1'というurl' https:// github.com/CocoaPods/Specs.git'のソースを追加できません。 '〜/ .cocoapods/repos'や' pod repo add'を使って手動で追加することができます。 – Krishu

+0

@Krishu私の答えを再確認 –

+0

ありがとうございました...それは働いた:) – Krishu

0

これを試してください。

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'Demo' do 
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 
    # use_frameworks! 

    # Pods for Demo 
    pod 'AZSClient' 
    pod 'CardIO' 
    pod 'Google/Analytics' 
    pod 'OpenTok' 
    pod 'THCalendarDatePicker', '~> 1.2.6' 

end 

target 'DemoTests' do 
    inherit! :search_paths 
    # Pods for testing 
end 

target 'DemoUITests' do 
    inherit! :search_paths 
    # Pods for testing 
end 
+0

と現在 'CardIO'リポジトリが動作していません。 "CardIO"リポジトリをチェックする必要があります。一時的に「CardIO」を削除してください。 –

+0

ありがとう...それは働いた:) – Krishu

+0

わかりました。私はそれをチェックします。 – Krishu

2

これらの行を使用してポッドファイルを書く:

platform :ios, '10.0' 
target “GoogleAnalyticsTestApp” do 
    pod 'GoogleAnalytics' 
end 

はない書き込みグーグル/解析を行います。 GoogleAnalyticsと書いてください。それが問題を解決することを願っています。

関連する問題