Do not generate targets for Pods without sources

If a PodTarget should not be build:
- Do not install a target
- Skip the non-existing native targets in Installer
- Do not add linker flags to XCConfig

Close #2916
Just use a `flat_map` and check the count of that? And use `empty?`