Cocoapods: what's the mean of link_with in Podfile?

Created on 19 Nov 2014  路  7Comments  路  Source: CocoaPods/CocoaPods

AFNetworking's Podfile shows that:

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

xcodeproj 'AFNetworking Tests'
workspace '../AFNetworking'
inhibit_all_warnings!

def import_pods
  pod 'OCMock', '~> 2.1.1'
  pod 'Expecta', '~> 0.2.1'
  pod 'AFNetworking', :path => '../'
end

target :ios do
  platform :ios, '7.0'
  link_with 'iOS Tests'
  import_pods
end

target :osx do
  platform :osx, '10.9'
  link_with 'OS X Tests'
  import_pods
end

what's the meaning of link_with? and link_with always write in the first line:

link_with ['Proj', 'ProjTests']

platform :ios, 6.0

pod 'Reachability', '3.1.1'
pod 'SVProgressHUD', '0.9'
pod 'FMDB', '2.1'

that's the different?

Most helpful comment

http://guides.cocoapods.org/syntax/podfile.html#link_with has been updated to new version, where can I find the old doc?

All 7 comments

@segiddins The documentation says:

TODO: This method can be deleted once people have migrated to this 1.0 DSL.

What does that mean?!

It means that we're deleting the link_to in a version after 1.0 is released. http://blog.cocoapods.org/CocoaPods-1.0/

Okay. Thanks.

http://guides.cocoapods.org/syntax/podfile.html#link_with has been updated to new version, where can I find the old doc?

Archive.org has it at https://web.archive.org/web/20151230070422/http://guides.cocoapods.org/syntax/podfile.html#link_with

@wodow Thanks. I have read this document but still have no idea that where to put it, that simple example should show more context and its rules.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steffendsommer picture steffendsommer  路  3Comments

luhui picture luhui  路  3Comments

Curtis-Halbrook picture Curtis-Halbrook  路  3Comments

dawnnnnn picture dawnnnnn  路  3Comments

soleares picture soleares  路  3Comments