target_names = installer.pod_targets.map { |target| target.name }in post_install can get all dependent pods, it include sub pod of pod in Podfile.
target_names = installer.pod_targets.map { |target| target.name }