jensmeder / Phoenx

A ruby gem to automate Xcode project generation.
https://rubygems.org/gems/phoenx
MIT License
18 stars 3 forks source link

Target type app_extension seems not supported #26

Open karstenlitsche opened 7 years ago

karstenlitsche commented 7 years ago

It seems that phoenx do not support every type of the base xcodeproj. For example I can't generate an app_extension.

Supported target types from Xcodeproj::constants.rb

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', :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

Example: Test.pxproject

phoenx version: 0.2.3 xcodeproj version: 1.3.3

simonseyer commented 7 years ago

Right now there are three different types of targets generated:

I'm not really into these other types of targets. But I guess most of them can be grouped into the list above. May you be able to support with this @karstenlitsche? Are you aware of any specifics regarding these target types?

karstenlitsche commented 7 years ago

I tried to make an Xcode extension. (like in this tutorial). Neither of the three targets is able to create such an extension target.