Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-6906

Tooling: tiapp.xml - line breaks in description field break compilation

    Details

    • Sprint:
      Release 3.0.0

      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

      iOS Error
      [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):
      
      main.m
      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";
      
      Android Error
      [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
      
      EvangelappsChurchAppInfo.java
      Line 54	public String getDescription() {
      Line 55     return "EvangelApps Church Framework 
      Line 56 Builds with 1.7.5";
      Line 57	}
      
      1. tiapp.xml
        2 kB
        Stephen Feather

        Activity

        Hide
        Stephen Feather added a comment -

        Fix Version/s:
        Release 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22

        Show
        Stephen Feather added a comment - Fix Version/s: Release 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
        Hide
        Chris Barber added a comment -

        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?

        Show
        Chris Barber added a comment - 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?
        Hide
        Stephen Feather added a comment -

        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?

        Show
        Stephen Feather added a comment - 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?
        Hide
        Chris Barber added a comment -

        Buggy 3.0? Impossible. Try build your app from the command line:

        titanium build -p ios --log-level trace -d /path/to/your/project
        
        Show
        Chris Barber added a comment - Buggy 3.0? Impossible. Try build your app from the command line: titanium build -p ios --log-level trace -d /path/to/your/project
        Hide
        Olga Romero added a comment -

        I was using a newly created project in 3.0.0 GA

        Show
        Olga Romero added a comment - I was using a newly created project in 3.0.0 GA

          People

          • Assignee:
            Chris Barber
            Reporter:
            Stephen Feather
          • Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile