Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

##### Enhancements

* None.
* Add `:application_on_demand_install_capable` product type to support App Clips.
[Igor Makarov](https://github.com/igor-makarov)
[#768](https://github.com/CocoaPods/Xcodeproj/pull/768)

##### Bug Fixes

Expand Down
72 changes: 37 additions & 35 deletions lib/xcodeproj/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,46 +140,48 @@ module Constants
# @return [Hash] The uniform type identifier of various product types.
#
PRODUCT_TYPE_UTI = {
:application => 'com.apple.product-type.application',
:framework => 'com.apple.product-type.framework',
:dynamic_library => 'com.apple.product-type.library.dynamic',
:static_library => 'com.apple.product-type.library.static',
:bundle => 'com.apple.product-type.bundle',
:octest_bundle => 'com.apple.product-type.bundle',
:unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
:ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
:app_extension => 'com.apple.product-type.app-extension',
:command_line_tool => 'com.apple.product-type.tool',
:watch_app => 'com.apple.product-type.application.watchapp',
:watch2_app => 'com.apple.product-type.application.watchapp2',
:watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
:watch_extension => 'com.apple.product-type.watchkit-extension',
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
:tv_extension => 'com.apple.product-type.tv-app-extension',
:messages_application => 'com.apple.product-type.application.messages',
:messages_extension => 'com.apple.product-type.app-extension.messages',
:sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
:xpc_service => 'com.apple.product-type.xpc-service',
:application => 'com.apple.product-type.application',
:application_on_demand_install_capable => 'com.apple.product-type.application.on-demand-install-capable',
:framework => 'com.apple.product-type.framework',
:dynamic_library => 'com.apple.product-type.library.dynamic',
:static_library => 'com.apple.product-type.library.static',
:bundle => 'com.apple.product-type.bundle',
:octest_bundle => 'com.apple.product-type.bundle',
:unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
:ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
:app_extension => 'com.apple.product-type.app-extension',
:command_line_tool => 'com.apple.product-type.tool',
:watch_app => 'com.apple.product-type.application.watchapp',
:watch2_app => 'com.apple.product-type.application.watchapp2',
:watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
:watch_extension => 'com.apple.product-type.watchkit-extension',
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
:tv_extension => 'com.apple.product-type.tv-app-extension',
:messages_application => 'com.apple.product-type.application.messages',
:messages_extension => 'com.apple.product-type.app-extension.messages',
:sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
:xpc_service => 'com.apple.product-type.xpc-service',
}.freeze

# @return [Hash] The extensions or the various product UTIs.
#
PRODUCT_UTI_EXTENSIONS = {
:application => 'app',
:framework => 'framework',
:dynamic_library => 'dylib',
:static_library => 'a',
:bundle => 'bundle',
:octest_bundle => 'octest',
:unit_test_bundle => 'xctest',
:ui_test_bundle => 'xctest',
:app_extension => 'appex',
:messages_application => 'app',
:messages_extension => 'appex',
:sticker_pack => 'appex',
:watch2_extension => 'appex',
:watch2_app => 'app',
:watch2_app_container => 'app',
:application => 'app',
:application_on_demand_install_capable => 'app',
:framework => 'framework',
:dynamic_library => 'dylib',
:static_library => 'a',
:bundle => 'bundle',
:octest_bundle => 'octest',
:unit_test_bundle => 'xctest',
:ui_test_bundle => 'xctest',
:app_extension => 'appex',
:messages_application => 'app',
:messages_extension => 'appex',
:sticker_pack => 'appex',
:watch2_extension => 'appex',
:watch2_app => 'app',
:watch2_app_container => 'app',
}.freeze

# @return [Hash] The common build settings grouped by platform, and build
Expand Down