After looking at CocoaPods' own example (from https://guides.cocoapods.org/syntax/podfile.html#abstract_target)
# Note: There are no targets called "Shows" in any of this workspace's Xcode projectsabstract_target 'Shows' do pod 'ShowsKit' # The target ShowsiOS has its own copy of ShowsKit (inherited) + ShowWebAuth (added here) target 'ShowsiOS' do pod 'ShowWebAuth' end # The target ShowsTV has its own copy of ShowsKit (inherited) + ShowTVAuth (added here) target 'ShowsTV' do pod 'ShowTVAuth' end # Our tests target has its own copy of # our testing frameworks, and has access # to ShowsKit as well because it is # a child of the abstract target 'Shows' target 'ShowsTests' do inherit! :search_paths pod 'Specta' pod 'Expecta' endend
I don't see why inherit! :search_paths
is necessary? All 3 targets, ShowsiOS
, ShowsTV
and ShowsTests
have access to ShowsKit
from their parent target.
The specific example for inherit!
(from https://guides.cocoapods.org/syntax/podfile.html#inherit_bang) doesn't add any clarity
target 'App' do target 'AppTests' do inherit! :search_paths endend
Can you help me understand what inherit! :search_paths
is for?