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

iOS: ti.cloud - App crashes on launch if you require in ti.cloud module with SDK 3.5.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Appcelerator Studio, build: 3.4.1.201410281743
      SDK build: 3.5.0.v20141201152532
      ti.cloud: 3.2.7 (GA)
      CLI: 3.4.1
      Alloy: 1.5.1
      Xcode: 6.1.1 GM Seed
      Devices: iphone 6 plus (8.1), iphone 5 (7.1.1)

      Description

      Details: If you require in the GA ti.cloud module (3.2.7) into your app running SDK 3.5.0, then your app will crash on launch. Specifically, this line of code from ti.cloud.js: if (null != b && null != e). However, if you use strict equal, e.g. if (null !== b && null !== e), then the app will launch fine.

      Notes:

      • This is a regression as this does not occur in SDK 3.4.1.GA
      • This issue it not reproducible if you require in APM

      Steps to reproduce:
      1. Create the default Titanium classic app
      2. Include this snippet of code in app.js (snippet of code is from ti.cloud.js):

      var e;
       
      null == e && (e = {});
       
      e.declareClass = function(a, d, b) {
          var e = a[d];
          a[d] = b;
          if (null != b && null != e)
              for (var f in e) "prototype" != f && (b[f] = e[f]);
          return b
      };
       
      e.declareClass(e, "SignatureMethod", function() {});
      

      3. Install app to device
      4. Launch app

      Actual: App will crash on launch; see crash.log and console.log.
      Expected: App should not crash if you require in the GA ti.cloud module.

        Attachments

        1. console.log
          1.33 MB
        2. crash.log
          43 kB
        3. ti.cloud.js
          50 kB

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration