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

iOS: 64-bit APM module throws an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.5.0
    • Component/s: iOS
    • Labels:
    • Environment:

      SDK version 3.5.Alpha
      iOS 8

      Description

      The new APM module compiled for 64 bit seems to be throwing the error below when built with the 3.5.Alpha:

      [ERROR] :  Script Error {
      [ERROR] :      column = 44;
      [ERROR] :      line = 11;
      [ERROR] :      nativeLocation = "-[ComAppceleratorApmModule init:] (ComAppceleratorApmModule.m:65)";
      [ERROR] :      nativeReason = "expected: String, was: (null)";
      [ERROR] :      sourceURL = "file:///Users/aleard/Library/Developer/CoreSimulator/Devices/228D3A95-AE1B-4B41-8F29-8C2B77EF1BC8/data/Containers/Bundle/Application/0F773D55-AA2B-4B9D-93DD-79249A0F01BB/Choreo.app/app.js";
      [ERROR] :      stack = "[native code]\nglobal code@file:///Users/aleard/Library/Developer/CoreSimulator/Devices/228D3A95-AE1B-4B41-8F29-8C2B77EF1BC8/data/Containers/Bundle/Application/0F773D55-AA2B-4B9D-93DD-79249A0F01BB/Choreo.app/app.js:11:44";
      [ERROR] :  }
      

      To reproduce build an app with the 3.5.Alpha SDK and the 64-bit compiled APM module enabled with services and the following code in the alloy.js file:

      // START: APM service code injection
      // Require the apm module
      Alloy.Globals.apm = undefined;
      try {
      Alloy.Globals.apm = require("com.appcelerator.apm");
      }
      catch (e) {
      Ti.API.info("com.appcelerator.apm module is not available");
      }
       
      // Initialize the module if it is defined
      Alloy.Globals.apm && Alloy.Globals.apm.init();
      // END: APM code injection
      

        Attachments

          Activity

            People

            • Assignee:
              jalter Jon Alter
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration