Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12348] CLI: iOS: Compiled i18n and JSS files not generated during Xcode builds

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-27T02:26:45.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
ComponentsCLI
Labelsregression
ReporterChris Barber
AssigneeChris Barber
Created2013-01-19T15:59:48.000+0000
Updated2013-02-11T02:36:46.000+0000

Description

If you build a Titanium app that uses either JSS and/or i18n, then open the Xcode project and build for device, it does not regenerate the stylesheet.plist or i18n lproj directories. The old 2.1.4.GA iOS builder.py does generate the i18n files during the pre-compile phase, but doesn't appear to generate the stylesheet.plist, thus JSS probably didn't work before either. Need to move those two generation steps into the pre-compile phase. Also double check that this doesn't break anything. There's a bit of an order to which events need to happen.

Comments

  1. Chris Barber 2013-01-26

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3796 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3797
  2. Chris Barber 2013-01-26

    To test: 1) create a project with i18n and jss 2) build and run app 3) open up build/iphone/appname.xcodeproj 4) build the app for device from Xcode 5) inspect ~/Library/Developer/Xcode/DerivedData/appname-/Build/Products/Debug-iphoneos/appname.app 6) notice en.lproj dir is missing 7) notice stylesheet.plist is missing 8) after applying fix 9) rebuild from Xcode 10) notice both en.lproj and stylesheet.plist exist
  3. Eric Merriman 2013-02-11

    Verified fixed on: Mac OS: 10.8.2 Titanium SDK version: 3.0.2.v20130207164659 Titanium Studio, build: 3.0.2.201302041757 CLI version: 3.0.24-cr Xcode 4.6 en.lproj and stylesheet.plist exist. I also used EspaƱol, so had an es.lproj as well. Project build in sim, then in Xcode run on device. The app worked as expected.

JSON Source