[TIMOB-12348] CLI: iOS: Compiled i18n and JSS files not generated during Xcode builds
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-27T02:26:45.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02 |
Components | CLI |
Labels | regression |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-01-19T15:59:48.000+0000 |
Updated | 2013-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.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3796 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3797
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-
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.