Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo for Podfile source issue

CocoaPods/CocoaPods#9457 (comment)

There are two issues about the source directive:

#1 The scope of the :source parameter in pod method, is not local (just for this pod method), but global.

source 'https://cdn.cocoapods.org/'

platform :ios, '9.0'

target 'PodSourceDemo' do
    pod 'AFNetworking'
    pod 'SocketRocket', :source => 'https://github.com/ElfSundae/CocoaPods-Specs.git'
end

AFNetworking will be installed from ElfSundae/CocoaPods-Specs too.

By default the sources specified at the global level are searched in the order they are specified for a dependency match.

via "Source" section of the pod syntax reference

#2 The order of the sources is irrelevant.

source 'https://cdn.cocoapods.org/'
source 'https://github.com/ElfSundae/CocoaPods-Specs.git'

platform :ios, '9.0'

target 'PodSourceDemo' do
    pod 'AFNetworking'
end

AFNetworking will be installed from ElfSundae/CocoaPods-Specs.

The order of the sources is relevant. CocoaPods will use the highest version of a Pod of the first source which includes the Pod (regardless whether other sources have a higher version).

via source syntax reference

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages