¡Qué hereda! : búsqueda_rutas hacer?
Después de mirar el propio ejemplo de CocoaPods (dehttps://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
No veo porqueinherit! :search_paths
¿es necesario? Los 3 objetivos,ShowsiOS
, ShowsTV
yShowsTests
tener acceso aShowsKit
de su objetivo principal.
El ejemplo específico parainherit!
(dehttps://guides.cocoapods.org/syntax/podfile.html#inherit_bang) no agrega ninguna claridad
target 'App' do
target 'AppTests' do
inherit! :search_paths
end
end
¿Puedes ayudarme a entender qué?inherit! :search_paths
¿es para?