2017-01-05 8 views
0

Пока я устанавливаю контейнер для какао в свою систему, я получил следующую ошибку.Ошибка при установке контейнеров для какао

Ошибка:

"Невозможно добавить источник с URL https://github.com/CocoaPods/Specs.gitmaster-1 по имени Вы можете попробовать добавить его вручную в ~/.cocoapods/repos или через pod 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 и установить последний 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 была успешно выполнена. Но выполнение команды pod install приводит к следующей ошибке: [!] Невозможно добавить источник с url 'https: // github.com/CocoaPods/Specs.git' с именем' master-1'. Вы можете попробовать добавить его вручную в '~/.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 

Do не записи Google Analytics/. Напишите GoogleAnalytics. Надеюсь, что это решит проблему.