Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1331

Windows: App crashes with 'Cannot find variable: OS_BLACKBERRY

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: alloy 1.7.25
    • Fix Version/s: Release 5.2.0, alloy 1.7.26
    • Component/s: Runtime
    • Labels:
    • Environment:

      OS: Microsoft Windows 10 Pro 10.0.10240
      Appc core: 5.1.0-58 (Alloy 1.7.25)
      Appc NPM: 4.2.1
      Ti SDK: 5.1.0.v20151116142031
      Appc Studio: 4.4.0.201511130407
      Node: v4.2.1
      NPM: 2.14.7

    • Story Points:
      1
    • Sprint:
      2015 Sprint 23 Tooling

      Description

      Description

      When building an Alloy app for Windows Platform the app crashes with the below error

      The error originates from this line in alloy.js and removing the OS_BLACKBERRY check allows the app to launch.

      [ERROR] :  Application Error: {
      [ERROR] :    "line": 2,
      [ERROR] :    "column": 10,
      [ERROR] :    "message": "Error while require(/app) Error while require(alloy) Can't find variable: OS_BLACKBERRY",
      [ERROR] :    "native_stack": [
      [ERROR] :      "JSExportClass<class Titanium::GlobalObject>::CallNamedFunction"
      [ERROR] :    ]
      [ERROR] :  }
      

      Steps to reproduce

      1. Create an Alloy app using appc new
      2. Build the app to Windows Platform using appc run -p windows

      Actual Result

      App crashes with the below

      [ERROR] :  Application Error: {
      [ERROR] :    "line": 2,
      [ERROR] :    "column": 10,
      [ERROR] :    "message": "Error while require(/app) Error while require(alloy) Can't find variable: OS_BLACKBERRY",
      [ERROR] :    "native_stack": [
      [ERROR] :      "JSExportClass<class Titanium::GlobalObject>::CallNamedFunction"
      [ERROR] :    ]
      [ERROR] :  }
      

      Expected result

      App should not crash

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Chee Kiat Ng (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration