xcodeproj 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa8a409c54e197e786e678afed596dfd1372d65e
4
- data.tar.gz: 4a0d52c5c12c034bcc939e79360f39f309b28c0f
3
+ metadata.gz: 6a97737e8e4f72673d7dcfe9c3f0874773ee0c46
4
+ data.tar.gz: e889540bfc2c0ca20cf4cbd72646040b23980184
5
5
  SHA512:
6
- metadata.gz: f1c744888421b694c27c3992e4277f434cd59a0e947ec7f484959556e9d0cfb38a95fecb9b6a43bd09a59bed5221c5ac7c018e6a1a6aebf17bd10bf6d86f249d
7
- data.tar.gz: d4206f55ae1bf92ee7909159d78f0fcd882dea212eaeb035bec7cb82d0d95bc5e77358ea0f106246e3c4a74a647f875a6576d9a024ce4972e1e906106778fca1
6
+ metadata.gz: 637b003c953cac894c738ca9063b844c23356c11282f74c6353b3f267eac8ce6611ac263d62bbebeb20cf4dd806179002f6af4700bee6696e8405ebbcf4d07fa
7
+ data.tar.gz: 6a86277c46f8e4fb571064a1c9d9ad0ad0b06428e66264b52fb5f646e37449573f3e748925266fa3d7fa37ac66a92302f51e310755fb17154a99ced81b1228e7
data/lib/xcodeproj.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Xcodeproj
2
2
  require 'pathname'
3
3
  require 'claide'
4
- require 'colored'
4
+ require 'colored2'
5
5
 
6
6
  class PlainInformative < StandardError
7
7
  include CLAide::InformativeError
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
- require 'colored'
2
+ require 'colored2'
3
3
  require 'claide'
4
4
 
5
5
  class Command < CLAide::Command
@@ -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 = '10.0'
7
+ LAST_KNOWN_IOS_SDK = '10.3'
8
8
 
9
9
  # @return [String] The last known OS X SDK (stable).
10
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 = '10.0'
14
+ LAST_KNOWN_TVOS_SDK = '10.2'
15
15
 
16
16
  # @return [String] The last known watchOS SDK (stable).
17
- LAST_KNOWN_WATCHOS_SDK = '3.0'
17
+ LAST_KNOWN_WATCHOS_SDK = '3.2'
18
18
 
19
19
  # @return [String] The last known archive version to Xcodeproj.
20
20
  #
@@ -33,7 +33,7 @@ module Xcodeproj
33
33
 
34
34
  # @return [String] The last known object version to Xcodeproj.
35
35
  #
36
- LAST_SWIFT_UPGRADE_CHECK = '0730'
36
+ LAST_SWIFT_UPGRADE_CHECK = '0830'
37
37
 
38
38
  # @return [String] The version of `.xcscheme` files supported by Xcodeproj
39
39
  #
@@ -81,26 +81,38 @@ module Xcodeproj
81
81
  # @return [Hash] The known file types corresponding to each extension.
82
82
  #
83
83
  FILE_TYPES_BY_EXTENSION = {
84
- 'a' => 'archive.ar',
85
- 'app' => 'wrapper.application',
86
- 'bundle' => 'wrapper.plug-in',
87
- 'dylib' => 'compiled.mach-o.dylib',
88
- 'framework' => 'wrapper.framework',
89
- 'h' => 'sourcecode.c.h',
90
- 'm' => 'sourcecode.c.objc',
91
- 'markdown' => 'text',
92
- 'mdimporter' => 'wrapper.cfbundle',
93
- 'octest' => 'wrapper.cfbundle',
94
- 'pch' => 'sourcecode.c.h',
95
- 'plist' => 'text.plist.xml',
96
- 'sh' => 'text.script.sh',
97
- 'swift' => 'sourcecode.swift',
98
- 'xcassets' => 'folder.assetcatalog',
99
- 'xcconfig' => 'text.xcconfig',
100
- 'xcdatamodel' => 'wrapper.xcdatamodel',
101
- 'xcodeproj' => 'wrapper.pb-project',
102
- 'xctest' => 'wrapper.cfbundle',
103
- 'xib' => 'file.xib',
84
+ 'a' => 'archive.ar',
85
+ 'apns' => 'text',
86
+ 'app' => 'wrapper.application',
87
+ 'appex' => 'wrapper.app-extension',
88
+ 'bundle' => 'wrapper.plug-in',
89
+ 'dylib' => 'compiled.mach-o.dylib',
90
+ 'entitlements' => 'text.plist.entitlements',
91
+ 'framework' => 'wrapper.framework',
92
+ 'gif' => 'image.gif',
93
+ 'gpx' => 'text.xml',
94
+ 'h' => 'sourcecode.c.h',
95
+ 'm' => 'sourcecode.c.objc',
96
+ 'markdown' => 'text',
97
+ 'mdimporter' => 'wrapper.cfbundle',
98
+ 'mov' => 'video.quicktime',
99
+ 'mp3' => 'audio.mp3',
100
+ 'octest' => 'wrapper.cfbundle',
101
+ 'pch' => 'sourcecode.c.h',
102
+ 'plist' => 'text.plist.xml',
103
+ 'png' => 'image.png',
104
+ 'sh' => 'text.script.sh',
105
+ 'sks' => 'file.sks',
106
+ 'storyboard' => 'file.storyboard',
107
+ 'strings' => 'text.plist.strings',
108
+ 'swift' => 'sourcecode.swift',
109
+ 'xcassets' => 'folder.assetcatalog',
110
+ 'xcconfig' => 'text.xcconfig',
111
+ 'xcdatamodel' => 'wrapper.xcdatamodel',
112
+ 'xcodeproj' => 'wrapper.pb-project',
113
+ 'xctest' => 'wrapper.cfbundle',
114
+ 'xib' => 'file.xib',
115
+ 'zip' => 'archive.zip',
104
116
  }.freeze
105
117
 
106
118
  # @return [Hash] The uniform type identifier of various product types.
@@ -180,11 +192,18 @@ module Xcodeproj
180
192
  [:debug, :ios] => {
181
193
  # Empty?
182
194
  }.freeze,
195
+ [:swift] => {
196
+ 'SWIFT_VERSION' => '3.0',
197
+ }.freeze,
183
198
  [:debug, :application, :swift] => {
184
199
  'SWIFT_OPTIMIZATION_LEVEL' => '-Onone',
185
200
  }.freeze,
186
201
  [:debug, :swift] => {
187
- 'SWIFT_OPTIMIZATION_LEVEL' => '-Onone',
202
+ 'SWIFT_OPTIMIZATION_LEVEL' => '-Onone',
203
+ 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'DEBUG',
204
+ }.freeze,
205
+ [:release, :swift] => {
206
+ 'SWIFT_OPTIMIZATION_LEVEL' => '-Owholemodule',
188
207
  }.freeze,
189
208
  [:debug, :static_library, :swift] => {
190
209
  }.freeze,
@@ -203,6 +222,7 @@ module Xcodeproj
203
222
  'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks', '@loader_path/Frameworks'],
204
223
  'CODE_SIGN_IDENTITY[sdk=iphoneos*]' => 'iPhone Developer',
205
224
  'TARGETED_DEVICE_FAMILY' => '1,2',
225
+ 'CODE_SIGN_IDENTITY' => '',
206
226
  }.freeze,
207
227
  [:osx, :framework] => {
208
228
  'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/../Frameworks', '@loader_path/Frameworks'],
@@ -214,10 +234,12 @@ module Xcodeproj
214
234
  'APPLICATION_EXTENSION_API_ONLY' => 'YES',
215
235
  'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks', '@loader_path/Frameworks'],
216
236
  'TARGETED_DEVICE_FAMILY' => '4',
237
+ 'CODE_SIGN_IDENTITY' => '',
217
238
  }.freeze,
218
239
  [:tvos, :framework] => {
219
240
  'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks', '@loader_path/Frameworks'],
220
241
  'TARGETED_DEVICE_FAMILY' => '3',
242
+ 'CODE_SIGN_IDENTITY' => '',
221
243
  }.freeze,
222
244
  [:framework, :swift] => {
223
245
  'DEFINES_MODULE' => 'YES',
@@ -262,15 +284,15 @@ module Xcodeproj
262
284
  'SKIP_INSTALL' => 'YES',
263
285
  'TARGETED_DEVICE_FAMILY' => '4',
264
286
  }.freeze,
265
- [:watchos, :application, :swift] => {
266
- 'EMBEDDED_CONTENT_CONTAINS_SWIFT' => 'YES',
267
- }.freeze,
268
287
  [:tvos, :application] => {
269
288
  'ASSETCATALOG_COMPILER_APPICON_NAME' => 'App Icon & Top Shelf Image',
270
289
  'ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME' => 'LaunchImage',
271
290
  'TARGETED_DEVICE_FAMILY' => '3',
272
291
  'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks'],
273
292
  }.freeze,
293
+ [:watchos, :application, :swift] => {
294
+ 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' => 'YES',
295
+ }.freeze,
274
296
  [:bundle] => {
275
297
  'PRODUCT_NAME' => '$(TARGET_NAME)',
276
298
  'WRAPPER_EXTENSION' => 'bundle',
@@ -291,28 +313,32 @@ module Xcodeproj
291
313
  #
292
314
  PROJECT_DEFAULT_BUILD_SETTINGS = {
293
315
  :all => {
294
- 'ALWAYS_SEARCH_USER_PATHS' => 'NO',
295
- 'CLANG_ANALYZER_NONNULL' => 'YES',
296
- 'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++0x',
297
- 'CLANG_CXX_LIBRARY' => 'libc++',
298
- 'CLANG_ENABLE_MODULES' => 'YES',
299
- 'CLANG_ENABLE_OBJC_ARC' => 'YES',
300
- 'CLANG_WARN__DUPLICATE_METHOD_MATCH' => 'YES',
301
- 'CLANG_WARN_BOOL_CONVERSION' => 'YES',
302
- 'CLANG_WARN_CONSTANT_CONVERSION' => 'YES',
303
- 'CLANG_WARN_DIRECT_OBJC_ISA_USAGE' => 'YES',
304
- 'CLANG_WARN_EMPTY_BODY' => 'YES',
305
- 'CLANG_WARN_ENUM_CONVERSION' => 'YES',
306
- 'CLANG_WARN_INT_CONVERSION' => 'YES',
307
- 'CLANG_WARN_OBJC_ROOT_CLASS' => 'YES',
308
- 'CLANG_WARN_UNREACHABLE_CODE' => 'YES',
309
- 'GCC_C_LANGUAGE_STANDARD' => 'gnu99',
310
- 'GCC_WARN_64_TO_32_BIT_CONVERSION' => 'YES',
311
- 'GCC_WARN_ABOUT_RETURN_TYPE' => 'YES',
312
- 'GCC_WARN_UNDECLARED_SELECTOR' => 'YES',
313
- 'GCC_WARN_UNINITIALIZED_AUTOS' => 'YES',
314
- 'GCC_WARN_UNUSED_FUNCTION' => 'YES',
315
- 'GCC_WARN_UNUSED_VARIABLE' => 'YES',
316
+ 'ALWAYS_SEARCH_USER_PATHS' => 'NO',
317
+ 'CLANG_ANALYZER_NONNULL' => 'YES',
318
+ 'CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION' => 'YES',
319
+ 'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++0x',
320
+ 'CLANG_CXX_LIBRARY' => 'libc++',
321
+ 'CLANG_ENABLE_MODULES' => 'YES',
322
+ 'CLANG_ENABLE_OBJC_ARC' => 'YES',
323
+ 'CLANG_WARN__DUPLICATE_METHOD_MATCH' => 'YES',
324
+ 'CLANG_WARN_BOOL_CONVERSION' => 'YES',
325
+ 'CLANG_WARN_CONSTANT_CONVERSION' => 'YES',
326
+ 'CLANG_WARN_DIRECT_OBJC_ISA_USAGE' => 'YES',
327
+ 'CLANG_WARN_EMPTY_BODY' => 'YES',
328
+ 'CLANG_WARN_ENUM_CONVERSION' => 'YES',
329
+ 'CLANG_WARN_INT_CONVERSION' => 'YES',
330
+ 'CLANG_WARN_OBJC_ROOT_CLASS' => 'YES',
331
+ 'CLANG_WARN_UNREACHABLE_CODE' => 'YES',
332
+ 'CLANG_WARN_DOCUMENTATION_COMMENTS' => 'YES',
333
+ 'CLANG_WARN_INFINITE_RECURSION' => 'YES',
334
+ 'CLANG_WARN_SUSPICIOUS_MOVE' => 'YES',
335
+ 'GCC_C_LANGUAGE_STANDARD' => 'gnu99',
336
+ 'GCC_WARN_64_TO_32_BIT_CONVERSION' => 'YES',
337
+ 'GCC_WARN_ABOUT_RETURN_TYPE' => 'YES',
338
+ 'GCC_WARN_UNDECLARED_SELECTOR' => 'YES',
339
+ 'GCC_WARN_UNINITIALIZED_AUTOS' => 'YES',
340
+ 'GCC_WARN_UNUSED_FUNCTION' => 'YES',
341
+ 'GCC_WARN_UNUSED_VARIABLE' => 'YES',
316
342
  },
317
343
  :release => {
318
344
  'COPY_PHASE_STRIP' => 'YES',
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.4.2'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.4.3'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -305,10 +305,11 @@ module Xcodeproj
305
305
  # this reason the new Xcodeproj behaviour is to add the
306
306
  # frameworks in a subgroup according to the platform.
307
307
  #
308
- # @return [void]
308
+ # @return [Array<PBXFileReference>] An array of the newly created file
309
+ # references.
309
310
  #
310
311
  def add_system_framework(names)
311
- Array(names).each do |name|
312
+ Array(names).map do |name|
312
313
  case platform_name
313
314
  when :ios
314
315
  group = project.frameworks_group['iOS'] || project.frameworks_group.new_group('iOS')
@@ -52,6 +52,15 @@ module Xcodeproj
52
52
  def ascii_plist_annotation
53
53
  " #{name || path && File.basename(path)} "
54
54
  end
55
+
56
+ # @return [String] A name suitable for displaying the object to the
57
+ # user.
58
+ #
59
+ def display_name
60
+ return name if name
61
+ return path if path
62
+ super
63
+ end
55
64
  end
56
65
  end
57
66
  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.4.2
4
+ version: 1.4.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-12-19 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -59,19 +59,19 @@ dependencies:
59
59
  - !ruby/object:Gem::Version
60
60
  version: '2.0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: colored
62
+ name: colored2
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.2'
67
+ version: '3.1'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.2'
74
+ version: '3.1'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: nanaimo
77
77
  requirement: !ruby/object:Gem::Requirement