motion-cocoapods 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/motion/project/cocoapods.rb +10 -2
- metadata +2 -2
@@ -51,7 +51,7 @@ module Motion::Project
|
|
51
51
|
end
|
52
52
|
|
53
53
|
class CocoaPods
|
54
|
-
VERSION = '1.2.
|
54
|
+
VERSION = '1.2.1'
|
55
55
|
PODS_ROOT = 'vendor/Pods'
|
56
56
|
|
57
57
|
def initialize(config)
|
@@ -120,13 +120,21 @@ module Motion::Project
|
|
120
120
|
lib_search_paths = pods_xcconfig.to_hash['LIBRARY_SEARCH_PATHS'] || ""
|
121
121
|
lib_search_paths.gsub!('$(PODS_ROOT)', "-L#{@config.project_dir}/#{PODS_ROOT}")
|
122
122
|
|
123
|
+
framework_search_paths = pods_xcconfig.to_hash['FRAMEWORK_SEARCH_PATHS']
|
124
|
+
if framework_search_paths
|
125
|
+
framework_search_paths.scan(/\"([^\"]+)\"/) do |search_path|
|
126
|
+
path = search_path.first.gsub!('$(PODS_ROOT)', "#{@config.project_dir}/#{PODS_ROOT}")
|
127
|
+
@config.framework_search_paths << path
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
123
131
|
@config.frameworks.concat(ldflags.scan(/-framework\s+([^\s]+)/).map { |m| m[0] })
|
124
132
|
@config.frameworks.uniq!
|
125
133
|
@config.libs.concat(ldflags.scan(/-l([^\s]+)/).map { |m|
|
126
134
|
if lib_search_paths.length == 0 || File.exist?("/usr/lib/lib#{m[0]}.dylib")
|
127
135
|
"/usr/lib/lib#{m[0]}.dylib"
|
128
136
|
else
|
129
|
-
"#{lib_search_paths} -l#{m[0]}"
|
137
|
+
"#{lib_search_paths} -all_load -l#{m[0]}"
|
130
138
|
end
|
131
139
|
})
|
132
140
|
@config.libs.uniq!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|