xcodeproj 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcodeproj/config/other_linker_flags_parser.rb +2 -2
- data/lib/xcodeproj/constants.rb +13 -11
- data/lib/xcodeproj/gem_version.rb +1 -1
- data/lib/xcodeproj/project.rb +1 -1
- data/lib/xcodeproj/project/object/build_configuration.rb +1 -1
- data/lib/xcodeproj/project/object/helpers/file_references_factory.rb +1 -0
- data/lib/xcodeproj/project/object/helpers/groupable_helper.rb +1 -0
- data/lib/xcodeproj/project/object/native_target.rb +1 -1
- data/lib/xcodeproj/project/object/target_dependency.rb +4 -0
- data/lib/xcodeproj/project/project_helper.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86066ac311d73f81d66b43b44741446f53537c38d9954f8623cdb4e51e1a8743
|
4
|
+
data.tar.gz: 58cd72db90acc368f9444960cee63f56b3e96fc659f133952b3205655846a74c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b9005240446ca9dd35a96839c84806196aff7823c1ef1ba0bf8b1ba14bf559ea93bf657cb862ae21020955604b6ba7c3d8766b79a8e296568e6b74f461586d
|
7
|
+
data.tar.gz: ca366977644fd705b0824a9e36d4a367ac3d36062d4ab6056a8b9a394486a23c8c1d694b7da4dc6a2752e685d18571b7d3d9c5026ac0ad3a2d9e4b9cf3aba394
|
@@ -55,13 +55,13 @@ module Xcodeproj
|
|
55
55
|
# The other linker flags value.
|
56
56
|
#
|
57
57
|
def self.split(flags)
|
58
|
-
flags.strip.shellsplit.
|
58
|
+
flags.strip.shellsplit.flat_map do |string|
|
59
59
|
if string =~ /\A-l.+/
|
60
60
|
['-l', string[2..-1]]
|
61
61
|
else
|
62
62
|
string
|
63
63
|
end
|
64
|
-
end
|
64
|
+
end
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/lib/xcodeproj/constants.rb
CHANGED
@@ -150,6 +150,7 @@ module Xcodeproj
|
|
150
150
|
:command_line_tool => 'com.apple.product-type.tool',
|
151
151
|
:watch_app => 'com.apple.product-type.application.watchapp',
|
152
152
|
:watch2_app => 'com.apple.product-type.application.watchapp2',
|
153
|
+
:watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
|
153
154
|
:watch_extension => 'com.apple.product-type.watchkit-extension',
|
154
155
|
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
|
155
156
|
:tv_extension => 'com.apple.product-type.tv-app-extension',
|
@@ -162,17 +163,18 @@ module Xcodeproj
|
|
162
163
|
# @return [Hash] The extensions or the various product UTIs.
|
163
164
|
#
|
164
165
|
PRODUCT_UTI_EXTENSIONS = {
|
165
|
-
:application
|
166
|
-
:framework
|
167
|
-
:dynamic_library
|
168
|
-
:static_library
|
169
|
-
:bundle
|
170
|
-
:octest_bundle
|
171
|
-
:unit_test_bundle
|
172
|
-
:ui_test_bundle
|
173
|
-
:app_extension
|
174
|
-
:watch2_extension
|
175
|
-
:watch2_app
|
166
|
+
:application => 'app',
|
167
|
+
:framework => 'framework',
|
168
|
+
:dynamic_library => 'dylib',
|
169
|
+
:static_library => 'a',
|
170
|
+
:bundle => 'bundle',
|
171
|
+
:octest_bundle => 'octest',
|
172
|
+
:unit_test_bundle => 'xctest',
|
173
|
+
:ui_test_bundle => 'xctest',
|
174
|
+
:app_extension => 'appex',
|
175
|
+
:watch2_extension => 'appex',
|
176
|
+
:watch2_app => 'app',
|
177
|
+
:watch2_app_container => 'app',
|
176
178
|
}.freeze
|
177
179
|
|
178
180
|
# @return [Hash] The common build settings grouped by platform, and build
|
data/lib/xcodeproj/project.rb
CHANGED
@@ -589,7 +589,7 @@ module Xcodeproj
|
|
589
589
|
#
|
590
590
|
def embedded_targets_in_native_target(native_target)
|
591
591
|
native_targets.select do |target|
|
592
|
-
host_targets_for_embedded_target(target).
|
592
|
+
host_targets_for_embedded_target(target).any? { |host| host.uuid == native_target.uuid }
|
593
593
|
end
|
594
594
|
end
|
595
595
|
|
@@ -139,7 +139,7 @@ module Xcodeproj
|
|
139
139
|
inherited = config_value || default
|
140
140
|
|
141
141
|
return build_setting_value.gsub(Regexp.union(Constants::INHERITED_KEYWORDS), inherited) if build_setting_value.is_a? String
|
142
|
-
build_setting_value.
|
142
|
+
build_setting_value.flat_map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? inherited : value }
|
143
143
|
end
|
144
144
|
|
145
145
|
def resolve_variable_substitution(key, value, root_target)
|
@@ -60,7 +60,7 @@ module Xcodeproj
|
|
60
60
|
if target_val.is_a? String
|
61
61
|
target_val.gsub(Regexp.union(Constants::INHERITED_KEYWORDS), proj_val)
|
62
62
|
else
|
63
|
-
target_val.
|
63
|
+
target_val.flat_map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? proj_val : value }
|
64
64
|
end
|
65
65
|
else
|
66
66
|
target_val || proj_val
|
@@ -224,8 +224,9 @@ module Xcodeproj
|
|
224
224
|
cl.build_configurations << release_conf
|
225
225
|
cl.build_configurations << debug_conf
|
226
226
|
|
227
|
+
existing_configurations = cl.build_configurations.map(&:name)
|
227
228
|
project.build_configurations.each do |configuration|
|
228
|
-
next if
|
229
|
+
next if existing_configurations.include?(configuration.name)
|
229
230
|
|
230
231
|
new_config = project.new(XCBuildConfiguration)
|
231
232
|
new_config.name = configuration.name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: atomos
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
|
-
rubygems_version: 3.0.
|
186
|
+
rubygems_version: 3.0.4
|
187
187
|
signing_key:
|
188
188
|
specification_version: 3
|
189
189
|
summary: Create and modify Xcode projects from Ruby.
|