Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  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	}
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              sfeather Stephen Feather
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code