motion-cocoapods 1.4.2 → 1.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef187da4dff56e88c14542a23a6970acd36a7d2c
4
- data.tar.gz: 18f39aadb0cb87d277370ee3ea15a9f5f922252a
3
+ metadata.gz: 5809a607aad317dffc74f3d3dea5f6e234ae544f
4
+ data.tar.gz: 29f69e491f27646fd980b37b3e3fc7a349836733
5
5
  SHA512:
6
- metadata.gz: b90490505d1693ae1e49994f1d0b179451a7181b6e78889cd740e506bfd4f7afb0d6ca610d0dbb555137eab8e85a74ebe5242a5cefc87fda1b566d5bf2ab2e10
7
- data.tar.gz: cf9c42b17299bae6b8176de40f0a1853b97698ea500f7a98255dcbd0ccc69428736b7a576872ec37c8a8999b40b9bc1f0b0e7fea4c20422756288d96f65b4e13
6
+ metadata.gz: eac171e6e18c1843f055209c679fe4ea225bd2d0ddfc6a67f139ffc9202e1a528c7c0ab3dea7384871eef971c4e2b02af9a94bbc9ff0fac14328ceae23eec7df
7
+ data.tar.gz: 13fcec8d997ea2ee5aaa488aeee68e90e798c0f053d1470d7e333f8a5f79a45d0b730235afe654f440fb1c98e0a28a41d74055dffe8e2c290a25f13c3fb01c8e
@@ -93,7 +93,9 @@ module Motion::Project
93
93
  # TODO replace this all once Xcodeproj has the proper xcconfig parser.
94
94
  if (xcconfig = self.pods_xcconfig_hash) && ldflags = xcconfig['OTHER_LDFLAGS']
95
95
  lib_search_paths = xcconfig['LIBRARY_SEARCH_PATHS'] || ""
96
- lib_search_paths.gsub!('$(PODS_ROOT)', "-L#{@config.project_dir}/#{PODS_ROOT}")
96
+ lib_search_paths = lib_search_paths.split(/"\s/).map do |path|
97
+ '-L ' << path.gsub('$(PODS_ROOT)', File.join(@config.project_dir, PODS_ROOT))
98
+ end.join(' ')
97
99
 
98
100
  @config.libs.concat(ldflags.scan(/-l([^\s]+)/).map { |m|
99
101
  if lib_search_paths.length == 0 || File.exist?("/usr/lib/lib#{m[0]}.dylib")
@@ -111,13 +113,14 @@ module Motion::Project
111
113
  framework_search_paths << path if path
112
114
  end
113
115
  end
114
- @config.framework_search_paths.concat(framework_search_paths)
115
-
116
116
  frameworks = ldflags.scan(/-framework\s+([^\s]+)/).map { |m| m[0] }
117
- @config.frameworks.concat(frameworks)
118
- @config.frameworks.uniq!
119
117
 
120
- if @config.deploy_platform == 'MacOSX'
118
+ case @config.deploy_platform
119
+ when 'MacOSX'
120
+ @config.framework_search_paths.concat(framework_search_paths)
121
+ @config.frameworks.concat(frameworks)
122
+ @config.frameworks.uniq!
123
+
121
124
  framework_search_paths.each do |framework_search_path|
122
125
  frameworks.each do |framework|
123
126
  path = File.join(framework_search_path, "#{framework}.framework")
@@ -126,6 +129,20 @@ module Motion::Project
126
129
  end
127
130
  end
128
131
  end
132
+ when 'iPhoneOS'
133
+ # If we would really specify these as ‘frameworks’ then the linker
134
+ # would not link the archive into the application, because it does not
135
+ # see any references to any of the symbols in the archive. Treating it
136
+ # as a static library (which it is) with `-force_load` fixes this.
137
+ #
138
+ framework_search_paths.each do |framework_search_path|
139
+ frameworks.each do |framework|
140
+ path = File.join(framework_search_path, "#{framework}.framework")
141
+ if File.exist?(path)
142
+ @config.libs << "-force_load '#{File.join(path, framework)}'"
143
+ end
144
+ end
145
+ end
129
146
  end
130
147
 
131
148
  @config.weak_frameworks.concat(ldflags.scan(/-weak_framework\s+([^\s]+)/).map { |m| m[0] })
@@ -24,6 +24,6 @@
24
24
 
25
25
  module Motion::Project
26
26
  class CocoaPods
27
- VERSION = '1.4.2'
27
+ VERSION = '1.5.0'
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-cocoapods
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Sansonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-02 00:00:00.000000000 Z
11
+ date: 2014-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.0.3
59
+ rubygems_version: 2.0.14
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: CocoaPods integration for RubyMotion projects