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

Hyperloop: iOS - TiApp Utility Class methods throw selector-error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Hyperloop 3.1.1
    • Fix Version/s: Hyperloop 3.1.2
    • Component/s: Hyperloop
    • Labels:
      None
    • Environment:

      CLI 7.0.5
      SDK 7.3.0.GA
      Hyperloop 3.1.1

    • Story Points:
      2
    • Sprint:
      2016 Sprint 17 SDK

      Description

      When attempting to register a UIApplicationDelegate instance through hyperloop the following exception is thrown:

      [ERROR] :  can't find selector registerApplicationDelegate for <TiApp: 0x7fe5699036b0>
      [ERROR] :  -[HyperloopPointer registerApplicationDelegate]: unrecognized selector sent to instance 0x60c00009c520
      [ERROR] :  Script Error {
      [ERROR] :      column = 26;
      [ERROR] :      description = "-[HyperloopPointer registerApplicationDelegate]: unrecognized selector sent to instance 0x60c00009c520";
      [ERROR] :      line = 128;
      [ERROR] :      message = "-[HyperloopPointer registerApplicationDelegate]: unrecognized selector sent to instance 0x60c00009c520";
      [ERROR] :      name = NSInvalidArgumentException;
      [ERROR] :      nativeStack = "1   libobjc.A.dylib                     0x0000000114af1031 objc_exception_throw + 48\n2   CoreFoundation                      0x0000000115beb784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132\n3   Hyperloop Test                      0x000000010d1ab106 +[HyperloopUtils invokeSelector:args:target:instance:] + 4646\n4   Hyperloop Test                      0x000000010d19f1a1 Dispatch + 1489\n5   JavaScriptCore                      0x000000010d5a0b63 _ZN3JSC19APICallbackFunction4callINS_18JSCallbackFunctionEEExPNS_9ExecStateE + 595\n6   ???                                 0x000002c074094034 0x0 + 3025603739700\n7   JavaScriptCore                      0x000000010d567d00 llint_entry + 29438\n8   JavaScriptCore                      0x000000010d567d00 llint_entry + 29438\n9   JavaScriptCore                      0x000000010d56081a vmEntryToJavaScript + 304\n10  JavaScriptCore                      0x000000010da41d43 _ZN3JSC7JITCode7executeEPNS_2VMEPNS_14ProtoCallFrameE + 147\n11  JavaScriptCore                      0x000000010d9fd617 _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEPNS_9ExecStateEPNS_8JSObjectE + 12343\n12  JavaScriptCore                      0x000000010dc442c4 _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 308\n13  JavaScriptCore                      0x000000010d59fec2 JSEvaluateScript + 482\n14  Hyperloop Test                      0x000000010cece121 -[KrollBridge evalFileOnThread:context:] + 1281\n15  Hyperloop Test                      0x000000010ced3f0c -[KrollInvocation invoke:] + 124\n16  Hyperloop Test                      0x000000010ced53df -[KrollContext invoke:] + 159\n17  Hyperloop Test                      0x000000010ced5775 -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 165\n18  Hyperloop Test                      0x000000010cece293 -[KrollBridge evalFile:callback:selector:] + 115\n19  Hyperloop Test                      0x000000010cecf105 -[KrollBridge didStartNewContext:] + 2565\n20  Hyperloop Test                      0x000000010ced605b -[KrollContext main] + 1819\n21  Hyperloop Test                      0x000000010ced51b6 __21-[KrollContext start]_block_invoke + 38\n22  libdispatch.dylib                   0x0000000116da86cb _dispatch_call_block_and_release + 12\n23  libdispatch.dylib                   0x0000000116da9709 _dispatch_client_callout + 8\n24  libdispatch.dylib                   0x0000000116db3708 _dispatch_main_queue_callback_4CF + 1279\n25  CoreFoundation                      0x0000000115b2cc99 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\n26  CoreFoundation                      0x0000000115af0ea6 __CFRunLoopRun + 2342\n27  CoreFoundation                      0x0000000115af030b CFRunLoopRunSpecific + 635\n28  GraphicsServices                    0x0000000118ad4a73 GSEventRunModal + 62\n29  UIKit                               0x000000010f7dd057 UIApplicationMain + 159\n30  Hyperloop Test                      0x000000010cebae04 main + 100\n31  libdyld.dylib                       0x0000000116e1e955 start + 1\n32  ???                                 0x0000000000000001 0x0 + 1";
      [ERROR] :      sourceURL = "file:///Users/richard/Library/Developer/CoreSimulator/Devices/21CF36EB-29EB-4B54-980E-5E6B514B4869/data/Containers/Bundle/Application/EEC17584-4B00-4E92-A39A-8F5E8DDECBCC/Hyperloop%20Test.app/hyperloop/titanium/tiapp.js";
      [ERROR] :      stack = "    at dispatch@[native code]\n    at value@file:///Users/richard/Library/Developer/CoreSimulator/Devices/21CF36EB-29EB-4B54-980E-5E6B514B4869/data/Containers/Bundle/Application/EEC17584-4B00-4E92-A39A-8F5E8DDECBCC/Hyperloop%20Test.app/hyperloop/titanium/tiapp.js:128:26)\n    at global code@file:///Users/richard/Library/Developer/CoreSimulator/Devices/21CF36EB-29EB-4B54-980E-5E6B514B4869/data/Containers/Bundle/Application/EEC17584-4B00-4E92-A39A-8F5E8DDECBCC/Hyperloop%20Test.app/app.js:31:40)";
      [ERROR] :  }
      

      I'm providing an example project where I've copied and pasted the example code from Titanium's wiki

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              rlustemberg Richard Lustemberg
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code