Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target type app_extension seems not supported #26

Open
karstenlitsche opened this issue Jan 22, 2017 · 2 comments
Open

Target type app_extension seems not supported #26

karstenlitsche opened this issue Jan 22, 2017 · 2 comments
Projects

Comments

@karstenlitsche
Copy link

karstenlitsche commented Jan 22, 2017

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
Copy link
Collaborator

Right now there are three different types of targets generated:

  • FrameworkTarget: plain target (type = :framework)
  • ApplicationTarget: Includes support for sub-projects (dependencies) and creates a build phase to copy frameworks in addition to the FrameworkTarget (type = :application)
  • TestTarget: obvious I guess (type = :unit_test_bundle)

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?

@simonseyer simonseyer added this to TODO in Default Feb 23, 2017
@karstenlitsche
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants