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

Hyperloop: iOS: Cannnot find class with name

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Hyperloop
    • Labels:
      None
    • Environment:

      Hyperloop 3.0.1
      SDK 7.0.0.GA

      Description

      When using material pod (https://github.com/CosmicMind/Material) and trying the following code:

      var Card = require("Material/Card");
      var Toolbar = require("Material/Toolbar");
      var IconButton = require("Material/IconButton");
      var Bar = require("Material/Bar");
      var UIColor = require('UIKit/UIColor');
      var Material = require("Material/Material");
      var View = require("UIKit/UIView");
      var CardView = require("Material/View");
      var FlatButton = require("Material/FlatButton");
       
      var CGRectMake = require('CoreGraphics').CGRectMake;
       
       
       
      var btn = new FlatButton();
      btn.title = "Flat Button";
      btn.width = 220;
      btn.height = 45;
      $.index.add(btn);
      

      fails with

      [ERROR] Cannot find class with name: FlatButton
      [ERROR] Script Error {
      [ERROR]     column = 32;
      [ERROR]     description = "Cannot find class with name: FlatButton";
      [ERROR]     line = 108;
      [ERROR]     message = "Cannot find class with name: FlatButton";
      [ERROR]     name = ClassNotFound;
      [ERROR]     nativeStack = "1   libobjc.A.dylib                     0x0000000113a
      30f41 objc_exception_throw + 48\n2   materiallib                         0x00000
      0010bf2e3e2 -[HyperloopClass initWithClassName:alloc:init:args:] + 386\n3   mate
      riallib                         0x000000010bf206b8 NewProxy + 1416\n4   JavaScri
      ptCore                      0x000000010cc72505 _ZN3JSC19APICallbackFunction4call
      INS_18JSCallbackFunctionEEExPNS_9ExecStateE + 501\n5   JavaScriptCore           
                 0x000000010cd81d21 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11Instr
      uctionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 577\n6
         JavaScriptCore                      0x000000010cd8af9d llint_entry + 27269\n7
         JavaScriptCore                      0x000000010cd8afab llint_entry + 27283\n8
         JavaScriptCore                      0x000000010cd8b2e6 llint_entry + 28110\n9
         JavaScriptCore                      0x000000010cd8b2e6 llint_entry + 28110\n1
      0  JavaScriptCore                      0x000000010cd8afab llint_entry + 27283\n1
      1  JavaScriptCore                      0x000000010cd84330 vmEntryToJavaScript + 
      304\n12  JavaScriptCore                      0x000000010cc1530f _ZN3JSC7JITCode7
      executeEPNS_2VMEPNS_14ProtoCallFrameE + 127\n13  JavaScriptCore                 
           0x000000010cbdb5d3 _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEP
      NS_9ExecStateEPNS_8JSObjectE + 13075\n14  JavaScriptCore                      0x
      000000010c9290ff _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueER
      N3WTF8NakedPtrINS_9ExceptionEEE + 303\n15  JavaScriptCore                      0
      x000000010cc705f0 JSEvaluateScript + 432\n16  materiallib                       
        0x000000010bc5fe71 -[KrollBridge evalFileOnThread:context:] + 1281\n17  materi
      allib                         0x000000010bc65c1c -[KrollInvocation invoke:] + 12
      4\n18  materiallib                         0x000000010bc670ef -[KrollContext inv
      oke:] + 159\n19  materiallib                         0x000000010bc67485 -[KrollC
      ontext invokeOnThread:method:withObject:callback:selector:] + 165\n20  materiall
      ib                         0x000000010bc5ffe3 -[KrollBridge evalFile:callback:se
      lector:] + 115\n21  materiallib                         0x000000010bc60e12 -[Kro
      llBridge didStartNewContext:] + 2498\n22  materiallib                         0x
      000000010bc67d5b -[KrollContext main] + 1819\n23  materiallib                   
            0x000000010bc66ec6 __21-[KrollContext start]_block_invoke + 38\n24  libdis
      patch.dylib                   0x00000001169b2273 _dispatch_call_block_and_releas
      e + 12\n25  libdispatch.dylib                   0x00000001169b32b5 _dispatch_cli
      ent_callout + 8\n26  libdispatch.dylib                   0x00000001169bd496 _dis
      patch_main_queue_callback_4CF + 1260\n27  CoreFoundation                      0x
      0000000114a41ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\n28  Cor
      eFoundation                      0x0000000114a06592 __CFRunLoopRun + 2402\n29  C
      oreFoundation                      0x0000000114a059b9 CFRunLoopRunSpecific + 409
      \n30  GraphicsServices                    0x00000001189d39c6 GSEventRunModal + 6
      2\n31  UIKit                               0x000000010e81d5e8 UIApplicationMain 
      + 159\n32  materiallib                         0x000000010bc4cef4 main + 100\n33
        libdyld.dylib                       0x0000000116a27d81 start + 1";
      [ERROR]     sourceURL = "file:///Users/Brian/Library/Developer/CoreSimulator/Dev
      ices/C481AD0F-F846-41BE-9D03-CFEEF1811F09/data/Containers/Bundle/Application/6B7
      71C23-F3BC-4362-BEAC-A5402D3F83C7/materiallib.app/hyperloop/material/flatbutton.
      js";
      [ERROR] } 
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                bgarcia Brian García
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Source Code