File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
lib/xcodeproj/project/object Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,21 @@ def add_system_library(names)
361
361
end
362
362
alias_method :add_system_libraries , :add_system_library
363
363
364
+ # add tbd type
365
+ #
366
+ #
367
+ def add_system_tbd ( names )
368
+ Array ( names ) . each do |name |
369
+ path = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib#{ name } .tbd"
370
+ files = project . frameworks_group . files
371
+ unless reference = files . find { |ref | ref . path == path }
372
+ reference = project . frameworks_group . new_file ( path , :sdk_root )
373
+ end
374
+ frameworks_build_phase . add_file_reference ( reference , true )
375
+ reference
376
+ end
377
+ end
378
+ alias_method :add_system_tbds , :add_system_tbd
364
379
public
365
380
366
381
# @!group AbstractObject Hooks
You can’t perform that action at this time.
0 commit comments