Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23892] Xcode 8: Appcelerator file templates not displayed anymore

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2016-09-11T17:08:38.000+0000
Affected Version/sRelease 5.5.0
Fix Version/sn/a
ComponentsiOS
Labelsfiletemplate, xcode8
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-09-10T11:40:12.000+0000
Updated2017-03-20T21:27:13.000+0000

Description

In Xcode 8 GM, the developer cannot select the Appcelerator file templates anymore (to generate new views and proxies). This is probably happening because Xcode locks down external extensions, but I'm sure there must be a new way to do that.

Comments

  1. Hans Knöchel 2016-09-11

    Ok, so it seems like the template path already changed a while ago, from:
       file_dir = os.path.expanduser("~/Library/Developer/Xcode/Templates/Application/File Templates/Appcelerator")
       
    to
       file_dir = os.path.expanduser("~/Library/Developer/Xcode/Templates/Project Templates/iOS/Appcelerator")
       
    inside the titanium_mobile/support/module/iphone/xcode/install.py [~cbarber] It looks like the install.py is invoked in titanium_mobile/support/module/iphone/iphone.py which is invoked in titanium_mobile/support/project.py. Nothing changed there so that we can ensure that the files are called, right? Just to be sure. *EDIT*: The "new" directory is indexed by Xcode 7 as well, so we don't need to maintain two versions.
  2. Hans Knöchel 2016-09-11

    PR: https://github.com/appcelerator/titanium_mobile/pull/8343
  3. Hans Knöchel 2016-09-11

    Resolving as invalid after talking to Chris about it. The files simply weren't there because they are created once a new module project is created. And since I didn't do that on my new device, yet, the hook has not been called.
  4. Chris Barber 2016-09-11

    I've created TIMOB-23893 to add checking and installing of the Xcode templates to ti setup. This should make sure that the templates get installed without having to create a new module project.
  5. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source