Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13043

CLI: iOS: INFO and ERROR are logged as TRACE when build and minification fail

    Details

      Description

      iOS: INFO and ERROR are logged as TRACE when build and minification fail.

      Steps to Reproduce:

      1. Enter code in app.js:

      foo bar
      

      2. Run in iOS Simulator.

      Actual Result:

      INFO and ERROR are logged as TRACE:

      [TRACE] [INFO]  Build type: test
      [TRACE] [INFO]  Building for target: simulator
      [TRACE] [INFO]  Building using iOS SDK: 6.1
      [TRACE] [INFO]  Building for iOS iPhone Simulator: 6.1
      [TRACE] [INFO]  Building for device family: iphone
      [TRACE] [INFO]  Building for iOS 6.1; using 4.3 as minimum iOS version
      [TRACE] [INFO]  Minimum iOS version: 4.3
      [TRACE] [INFO]  Debugging disabled
      [TRACE] [INFO]  Profiler disabled
      [TRACE] [INFO]  Initiating Xcode pre-compile phase
      [TRACE] [INFO]  Found Titanium module id=com.crittercism.ti version=latest platform=iphone deploy-type=test
      [TRACE] [INFO]  Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=test
      [TRACE] [INFO]  Detected third-party native iOS module: com.crittercism.ti version 1.0
      [TRACE] [ERROR] Failed to minify /Users/dhyde/Desktop/tistud/tistud-360-nightly/workspace/MyOldProject/Resources/app.js
      [TRACE] [ERROR] Unexpected token: name (vxb) [line 1, column 5]
      [TRACE] [ERROR]   
      [TRACE] [ERROR]     fgsn vxb fggadklbmzso;vj[psonv'awbnp'oawnbm;kwdvar crittercism = require("com.crittercism.ti");
      [TRACE] [ERROR]     -----^
      [TRACE] [ERROR]   
      

      The nature of the error is not correctly surfaced to the user. This affects Titanium Studio.

      Expected Result:

      [INFO]  Build type: test
      [INFO]  Building for target: simulator
      [INFO]  Building using iOS SDK: 6.1
      [INFO]  Building for iOS iPhone Simulator: 6.1
      [INFO]  Building for device family: iphone
      [INFO]  Building for iOS 6.1; using 4.3 as minimum iOS version
      [INFO]  Minimum iOS version: 4.3
      [INFO]  Debugging disabled
      [INFO]  Profiler disabled
      [INFO]  Initiating Xcode pre-compile phase
      [INFO]  Found Titanium module id=com.crittercism.ti version=latest platform=iphone deploy-type=test
      [INFO]  Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=test
      [INFO]  Detected third-party native iOS module: com.crittercism.ti version 1.0
      [ERROR] Failed to minify /Users/dhyde/Desktop/tistud/tistud-360-nightly/workspace/MyOldProject/Resources/app.js
      [ERROR] Unexpected token: name (vxb) [line 1, column 5]
      [ERROR]   
      [ERROR]     fgsn vxb fggadklbmzso;vj[psonv'awbnp'oawnbm;kwdvar crittercism = require("com.crittercism.ti");
      [ERROR]     -----^
      [ERROR]   
      [ERROR] ** BUILD FAILED **
      [ERROR] The following build commands failed:
      [ERROR]         PhaseScriptExecution Pre-Compile build/MyOldProject.build/Debug-iphonesimulator/MyOldProject.build/Script-241EAF36118E30260081A5BE.sh 
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              dhyde Dustin Hyde
              Reviewer:
              Bryan Hughes
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15877
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration