Что наследует! : search_paths делать?
Посмотрев на собственный пример CocoaPods (изhttps://guides.cocoapods.org/syntax/podfile.html#abstract_target)
# Note: There are no targets called "Shows" in any of this workspace's Xcode projects
abstract_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'
end
end
Я не понимаю почемуinherit! :search_paths
является необходимым? Все 3 цели,ShowsiOS
, ShowsTV
а такжеShowsTests
иметь доступ кShowsKit
от их родительской цели.
Конкретный пример дляinherit!
(отhttps://guides.cocoapods.org/syntax/podfile.html#inherit_bang) не добавляет ясности
target 'App' do
target 'AppTests' do
inherit! :search_paths
end
end
Можете ли вы помочь мне понять, чтоinherit! :search_paths
для?