Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6906] Tooling: tiapp.xml - line breaks in description field break compilation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-07T23:20:15.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1, Release 2.1.2
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
ComponentsTooling
Labels3.0.0beta2, core
ReporterStephen Feather
AssigneeChris Barber
Created2011-12-27T13:19:16.000+0000
Updated2012-12-18T22:29:40.000+0000

Description

Problem

If a character return/line feed is anywhere in the description field of the TIAPP.xml, compilation fails.

Steps to Reproduce

1. Create a new blank project. 2. Edit the project settings in TIAPP.xml (or use attached file) 3. Add a multi-line description using char returns/line breaks. 4. Build for simulators/emulators 5. Observe errors below

Logs

[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:16:47: error: unexpected '@' in program [1]
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:18:44: error: expected ';' after top level declarator [1]
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:18:45: error: unexpected '@' in program [1]
[ERROR] 
[ERROR] Error: Traceback (most recent call last):
Line 16 NSString * const TI_APPLICATION_DESCRIPTION = @"EvangelApps Church Framework 
Line 17 Builds with 1.7.5";
Line 18 NSString * const TI_APPLICATION_COPYRIGHT = @"2011 by EvangelApps LLC";
[ERROR] Error(s) compiling generated Java code
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/android/gen/com/evangelapps/church/EvangelappsChurchAppInfo.java:55: unclosed string literal
Line 54	public String getDescription() {
Line 55     return "EvangelApps Church Framework 
Line 56 Builds with 1.7.5";
Line 57	}

Attachments

FileDateSize
tiapp.xml2011-12-27T13:59:39.000+00002055

Comments

  1. Paul Dowsett 2011-12-27

    Thanks for raising this ticket. It's not clear what this issue is, however, or how to reliably reproduce it. Please add a proper description and an tiapp.xml file to the main body of the ticket. All the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. I will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project. Cheers
  2. Stephen Feather 2012-09-02

    This bug continues to exists in 2.1.2 and is still tripping people up 6 months later: http://developer.appcelerator.com/question/133742/cant-run-my-app-anymore-on-ios-simulator#
  3. Chris Barber 2012-10-29

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3349 3.0.X pull request: https://github.com/appcelerator/titanium_mobile/pull/3350
  4. Olga Romero 2012-12-18

    Tested on: Titanium Studio, build: 3.0.0.201212131639 Titanium SDK, build 3.0.0.v20121212184921 MacBookPro 10.8.2 Mountain Lion XCode 4.5.2 Simulator 6.0 Closing as fixed.
  5. Stephen Feather 2012-12-18

    !http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/f083a29c-82ca-4f2d-b0c9-a5732659702a/00000582.png!
  6. Stephen Feather 2012-12-18

    Fix Version/s: Release 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
  7. Chris Barber 2012-12-18

    According to your screenshot, you're using SDK 3.0.0.GA, but in the log you can see it's using the 3.0.0.GA/iphone/builder.py which was NOT fixed. It was only fixed in the new CLI's iOS build script. How did you manage to tell Studio to use the old builder.py?
  8. Stephen Feather 2012-12-18

    Thats the question, isn't it? I don't have an alias in place (well, I do, titaniumpy points to the old python scripts for module dev per our last convo). Could it be that I'm still using 2.1.2 TiStudio (stable) ? and not the buggy 3.0?
  9. Chris Barber 2012-12-18

    Buggy 3.0? Impossible. Try build your app from the command line:
       titanium build -p ios --log-level trace -d /path/to/your/project
       
  10. Olga Romero 2012-12-18

    I was using a newly created project in 3.0.0 GA

JSON Source