CocoaPods Techniques

Updated
May 5, 2021 6:38 AM
Created
May 5, 2021 6:35 AM
Tags
Cocoapods
Keywords
Date

Prints out the dependency tree in pod install

āÆ pod install
Analyzing dependencies
Downloading dependencies
šŸ“¦ Pods-TextureSwiftSupport
 -> Texture
šŸ“¦ Pods-Demo
 -> Texture
 -> GlossButtonNode
   -> Texture
   -> TextureSwiftSupport
     -> Texture
 -> Reveal-SDK
 -> TextureSwiftSupport
   -> Texture
 -> TypedTextAttributes
šŸ“¦ Pods-TextureSwiftSupportTests
Example
pre_install do |installer|
  installer.aggregate_targets.each { |target|
    puts "šŸ“¦ #{target.name}"

    def print_pods(pod, depth)
      puts "#{depth} -> #{pod.name}"
      pod.dependent_targets.each { |d|
        print_pods d, depth + "  "
      }
    end

    target.pod_targets.each { |t|
      print_pods t, ""
    }
  }
end
Podfile