Reputation: 1
While I am installing cocoa pod in my system, I got following error.
Error :
"[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git
named master-1
. You can try adding it manually in ~/.cocoapods/repos
or via pod repo add
."
pod file:
# 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
Upvotes: 0
Views: 708
Reputation: 4117
Write the pod file using these lines:
platform :ios, '10.0'
target “GoogleAnalyticsTestApp” do
pod 'GoogleAnalytics'
end
Do not write Google/Analytics. Write GoogleAnalytics. Hope it will solve the problem.
Upvotes: 2
Reputation: 1
You can't use target in target.
Try this.
# 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
Upvotes: 0
Reputation: 9503
I got the same issue and some times it just happened by the mismatch version of the required cocoa and cocoa pod.
My solution is as follows :
pod repo remove master
pod setup
pod install
If you still follow any issue then let me know.
Change your pod file with this:
`# 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
Upvotes: 0