Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4861] iOS: Update Module File Templates for XCode 4

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-03T13:44:38.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-44, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterDawson Toth
AssigneeDawson Toth
Created2011-08-01T13:38:17.000+0000
Updated2014-06-19T12:46:44.000+0000

Description

Problem

When creating a new module with XCode 4 installed, the build scripts incorrectly install the XCode file templates relevant to modules. If you try to create a new file in XCode, you will not see the "Appcelerator" group or any of the file options such as "TiModule", "TiProxy", "TiUIView", etc.

Pull Request

"Gussy" has contributed a fix to this issue, and it is available here: https://github.com/appcelerator/titanium_mobile/pull/104 I have tested this out in my local environment and it works well.

Comments

  1. Tony Guntharp 2011-09-21

    Gussy -- aka Angus Peart has signed a CLA so this request is gtg from that side.
  2. Dawson Toth 2011-10-24

    How To Test

    - If you haven't already, create an alias to titanium in your ~/.bash_profile:
    alias titanium="/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.0/titanium.py";
    - Create a module from the terminal:
    titanium create --type=module --platform=iphone --name=templateTesting --id=ti.templateTesting
    - Open the module's project in Xcode 4.1+:
    open templateTesting/templatetesting.xcodeproj
    - In Xcode, right click on the project name, and choose "New File...". - If there is a seventh category, "Appcelerator", under the iOS category, this test passes. If not, it fails.
  3. Dawson Toth 2011-10-24

    I created a new pull request for this to make it easy to test with the latest version of the SDK, and to make it easy to merge in: https://github.com/appcelerator/titanium_mobile/pull/579
  4. Dawson Toth 2011-11-03

    Verified on Jeff English's machine. Looks good.
  5. Wilson Luu 2011-12-07

    Closing bug. Verified fix on: OS: Mac OS X Lion SDK build: 1.8.0.1.v20111207151125

JSON Source