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

iOS: Application throws an error if there is no Ti.UI.Window reference

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.3.0, Release 7.5.0
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      APPC Studio: 5.1.0.201808080937
      APPC CLI: 7.0.6
      iphone 6 (12.0)
      Operating System Name: Mac OS High Sierra
      Operating System Version: 10.13.6
      Node.js Version: 8.9.1
      Xcode 10.0 beta 6

    • Story Points:
      2
    • Sprint:
      2018 Sprint 19 SDK

      Description

      When building a blank application or with just console.log/console.time.

      The following error is shown:

      [ERROR] :  ** BUILD FAILED **
      [ERROR] :  The following build commands failed:
      [ERROR] :  CompileC /Users/Samir/Desktop/newWS/T5/build/iphone/build/Intermediates/T5.build/Debug-iphoneos/T5.build/Objects-normal/armv7/TiViewProxy.o /Users/Samir/Desktop/newWS/T5/build/iphone/Classes/TiViewProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [ERROR] :  (1 failure)
      

      Steps to reproduce:

      1. Create a titanium application
      2. Run the app blank or with something similar to:

        console.time('mytimer'); // Start timer
        console.timeLog('mytimer'); // Log time taken so far
        console.timeLog('mytimer', 'with', 'some', 'extra', 'info'); // Log time taken with extra logging
        console.timeLog('mytimer', [ 'a', 'b', 'c' ], { objects: true }); // Should handle Arrays and Objects
        console.timeEnd('mytimer');
        

      Expected result
      Application should still build and the console should output something similar to (if the code above is used):

      [INFO]  mytimer: 1ms
      [INFO]  mytimer: 2ms with some extra info
      [INFO]  mytimer: 3ms ["a","b","c"] {"objects":true}
      [INFO]  mytimer: 3ms
      

      Actual result
      Build fails and above error is shown.

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              smohammed Samir Mohammed
              Reviewer:
              Hans Knöchel
              Tester:
              Samir Mohammed
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code