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

Hyperloop: iOS - Hyperloop.defineClass fails when subclassing NSObject

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Hyperloop, iOS
    • Labels:
      None
    • Environment:

      Mac OSX 10.11.6
      Titanium SDK 6.0.1.GA
      Alloy 1.9.5
      Hyperloop 2.0.0
      Appcelerator Studio 4.8.1.201612050850
      iOS SDK 10.2
      Xcode 8.2.1

      Description

      Hyperloop.defineClass() method is preventing my app from building with an uncaught exception during build/deploy to device or simulator.

      In the log output I get:

      [INFO]  Processing JavaScript files
      An uncaught exception was thrown!
      Hyperloop.defineClass must return a class definition into a variable
      

      I just did a File -> New Mobile App in Appcelerator Studio and added 1 line to "index.js"

      var myFoo = Hyperloop.defineClass('MyFoo', 'NSObject');
       
      function doClick(e) {
          alert($.label.text);
      }
       
      $.index.open();
      

      I also have

      <use-jscore-framework>true</use-jscore-framework>
      

      added in my tiapp.xml

      no other changes from the default "new project" template in Appc Studio.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                ksouthworth Kevin Southworth
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration