Commit 3cef3ebe authored by Boris Bügling's avatar Boris Bügling

[Installer] Limit check for static binaries.

parent 2e081a3c
...@@ -21,6 +21,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -21,6 +21,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#3212](https://github.com/CocoaPods/CocoaPods/issues/3212) [#3212](https://github.com/CocoaPods/CocoaPods/issues/3212)
* Limit the check for transitive static binaries to those which are directly linked to the user target.
[Boris Bügling](https://github.com/neonichu)
[#3194](https://github.com/CocoaPods/CocoaPods/issues/3194)
## 0.36.0.rc.1 ## 0.36.0.rc.1
......
...@@ -355,7 +355,7 @@ module Pod ...@@ -355,7 +355,7 @@ module Pod
pod_targets = aggregate_target.pod_targets_for_build_configuration(config) pod_targets = aggregate_target.pod_targets_for_build_configuration(config)
dependencies = pod_targets.flat_map(&:dependencies) dependencies = pod_targets.flat_map(&:dependencies)
dependended_upon_targets = pod_targets.select { |t| dependencies.include?(t.pod_name) } dependended_upon_targets = pod_targets.select { |t| dependencies.include?(t.pod_name) && !t.should_build? }
static_libs = dependended_upon_targets.flat_map(&:file_accessors).flat_map do |fa| static_libs = dependended_upon_targets.flat_map(&:file_accessors).flat_map do |fa|
static_frameworks = fa.vendored_frameworks.reject { |fw| `file #{fw + fw.basename('.framework')} 2>&1` =~ /dynamically linked/ } static_frameworks = fa.vendored_frameworks.reject { |fw| `file #{fw + fw.basename('.framework')} 2>&1` =~ /dynamically linked/ }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment