xcodeproj 1.3.2 → 1.3.3

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: 483500148fe17ee6fba34b974409c1315347f096
4
- data.tar.gz: dbda0068b785df5bda02f297d677737de8a6e604
3
+ metadata.gz: 04c4429d5bd1901ac79b9057825d4506a3d4677a
4
+ data.tar.gz: 41170f0792b8529c15600b5837f94949f0114cfb
5
5
  SHA512:
6
- metadata.gz: f263348b6d8ebfd90c70a74ac61e8bf9c7d6b69c469cfdb6a094d114d30dd8236863b448924bc33bb956f7bdfc8a3575813f93d6103017c0980308eaa6199cf8
7
- data.tar.gz: 89b9daa36a81cc4486b12324f2b48ebde2713902c2f0cb7318b85900e893f6107d565c0c60b6ee2f529fca98324b423e97a026cfd414d8a4aeafd9b24a0032eb
6
+ metadata.gz: bd83e86802491f25727e5ea74b1ff9d4edab9cb183254cb89482dd92998bc6ef96051d7a2f43be7d51e1e9dd5d635950d3c61f95e8dc253696b9b43112516553
7
+ data.tar.gz: 549778943ec9f0d3a9cea8277be5fe90b71b16d5c9404c17917a66caa5a49430bceedd652ccb30244189855aecc96ccb83f60aa52a773f639cdb95eafb4ed42a
@@ -4,17 +4,17 @@ module Xcodeproj
4
4
  module Constants
5
5
  # @return [String] The last known iOS SDK (stable).
6
6
  #
7
- LAST_KNOWN_IOS_SDK = '9.3'
7
+ LAST_KNOWN_IOS_SDK = '10.0'
8
8
 
9
9
  # @return [String] The last known OS X SDK (stable).
10
10
  #
11
- LAST_KNOWN_OSX_SDK = '10.11'
11
+ LAST_KNOWN_OSX_SDK = '10.12'
12
12
 
13
13
  # @return [String] The last known tvOS SDK (stable).
14
- LAST_KNOWN_TVOS_SDK = '9.2'
14
+ LAST_KNOWN_TVOS_SDK = '10.0'
15
15
 
16
16
  # @return [String] The last known watchOS SDK (stable).
17
- LAST_KNOWN_WATCHOS_SDK = '2.2'
17
+ LAST_KNOWN_WATCHOS_SDK = '3.0'
18
18
 
19
19
  # @return [String] The last known archive version to Xcodeproj.
20
20
  #
@@ -124,6 +124,7 @@ module Xcodeproj
124
124
  :messages_application => 'com.apple.product-type.application.messages',
125
125
  :messages_extension => 'com.apple.product-type.app-extension.messages',
126
126
  :sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
127
+ :xpc_service => 'com.apple.product-type.xpc-service',
127
128
  }.freeze
128
129
 
129
130
  # @return [Hash] The extensions or the various product UTIs.
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.3.2'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.3.3'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -216,7 +216,9 @@ module Xcodeproj
216
216
  if object_version.to_i > Constants::LAST_KNOWN_OBJECT_VERSION
217
217
  raise '[Xcodeproj] Unknown object version.'
218
218
  end
219
- root_object.product_ref_group = root_object.main_group['Products'] || root_object.main_group.new_group('Products')
219
+
220
+ # Projects can have product_ref_groups that are not listed in the main_groups["Products"]
221
+ root_object.product_ref_group ||= root_object.main_group['Products'] || root_object.main_group.new_group('Products')
220
222
  end
221
223
 
222
224
  public
@@ -132,13 +132,14 @@ module Xcodeproj
132
132
  GroupableHelper.set_path_with_source_tree(ref, path, source_tree)
133
133
  ref.version_group_type = 'wrapper.xcdatamodel'
134
134
 
135
+ real_path = group.real_path.join(path)
135
136
  current_version_name = nil
136
- if path.exist?
137
- path.children.each do |child_path|
137
+ if real_path.exist?
138
+ real_path.children.each do |child_path|
138
139
  if File.extname(child_path) == '.xcdatamodel'
139
140
  new_file_reference(ref, child_path, :group)
140
141
  elsif File.basename(child_path) == '.xccurrentversion'
141
- full_path = path + File.basename(child_path)
142
+ full_path = real_path + File.basename(child_path)
142
143
  xccurrentversion = Plist.read_from_path(full_path)
143
144
  current_version_name = xccurrentversion['_XCCurrentVersionName']
144
145
  end
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.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport