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

iOS: KrollBridge no longer exposes "modules" method as of 10.0.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 10.0.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Story Points:
      3

      Description

      This took us days to track down: There are crashes related to setters in modules built with SDK 9.x when running in an app with SDK 10. The following selector has been used (accessed via via.canDrag = true):

      - (void)setCanDrag:(NSNumber *)value
      

      The full method can be found here.

      The crash is:

      [DEBUG] -[__NSCFString count]: unrecognized selector sent to instance 0x7f83dc335000
      [DEBUG] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x7f83dc335000'
      [DEBUG] *** First throw call stack:
      [DEBUG] (
      [DEBUG]         0   CoreFoundation                      0x00007fff20421af6 __exceptionPreprocess + 242
      [DEBUG]         1   libobjc.A.dylib                     0x00007fff20177e78 objc_exception_throw + 48
      [DEBUG]         2   CoreFoundation                      0x00007fff204306f7 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
      [DEBUG]         3   CoreFoundation                      0x00007fff20426036 ___forwarding___ + 1489
      [DEBUG]         4   CoreFoundation                      0x00007fff20428068 _CF_forwarding_prep_0 + 120
      [DEBUG]         5   TitaniumKit                         0x00000001090e19f5 -[TiScriptError formattedNativeStack] + 133
      [DEBUG]         6   TitaniumKit                         0x00000001090e18fb -[TiScriptError description] + 1127
      [DEBUG]         7   Foundation                          0x00007fff2084c37a _NSDescriptionWithLocaleFunc + 82
      [DEBUG]         8   CoreFoundation                      0x00007fff203bae0d __CFStringAppendFormatCore + 12102
      [DEBUG]         9   CoreFoundation                      0x00007fff203bc8a1 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 145
      [DEBUG]         10  CoreFoundation                      0x00007fff203bc80a _CFStringCreateWithFormatAndArgumentsAux2 + 20
      [DEBUG]         11  TitaniumKit                         0x00000001090a3f3d TiLogMessage + 175
      [DEBUG]         12  TitaniumKit                         0x00000001090e0eb0 -[TiExceptionHandler reportScriptError:] + 74
      [DEBUG]         13  TitaniumKit                         0x00000001090cdd9e TiBindingEventProcess + 731
      [DEBUG]         14  TitaniumKit                         0x00000001090ef223 -[KrollContext invoke:] + 109
      [DEBUG]         15  TitaniumKit                         0x00000001090ef296 -[KrollContext enqueue:] + 93
      [DEBUG]         16  TitaniumKit                         0x00000001090f6640 TiBindingRunLoopEnqueue + 77
      [DEBUG]         17  TitaniumKit                         0x00000001090f4d45 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 187
      [DEBUG]         18  TitaniumKit                         0x00000001090d5b08 -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224
      [DEBUG]         19  TitaniumKit                         0x00000001090f4b3b -[TiProxy fireEvent:withObject:propagate:] + 76
      [DEBUG]         20  libdispatch.dylib                   0x00007fff2010532f _dispatch_call_block_and_release + 12
      [DEBUG]         21  libdispatch.dylib                   0x00007fff20106508 _dispatch_client_callout + 8
      [DEBUG]         22  libdispatch.dylib                   0x00007fff20112ff7 _dispatch_main_queue_callback_4CF + 1045
      [DEBUG]         23  CoreFoundation                      0x00007fff2038fdbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
      [DEBUG]         24  CoreFoundation                      0x00007fff2038a63e __CFRunLoopRun + 2685
      [DEBUG]         25  CoreFoundation                      0x00007fff203896d6 CFRunLoopRunSpecific + 567
      [DEBUG]         26  GraphicsServices                    0x00007fff2c257db3 GSEventRunModal + 139
      [DEBUG]         27  UIKitCore                           0x00007fff24696cf7 -[UIApplication _run] + 912
      [DEBUG]         28  UIKitCore                           0x00007fff2469bba8 UIApplicationMain + 101
      [DEBUG]         29  Lambus                              0x0000000106d8693b main + 1115
      [DEBUG]         30  libdyld.dylib                       0x00007fff2025a3e9 start + 1
      [DEBUG] )
      

      The same works fine with SDK 9.3.2.GA and can be reproduced in our project shared with the team. I created a workaround in my module which can be seen here

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                hknoechel Hans Knöchel
                Reviewer:
                Joshua Quick
              • Watchers:
                6 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