{ "id": "175505", "key": "AC-6600", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-09-04T11:54:48.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-07T14:34:48.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "15000", "name": "Hyperloop" } ], "description": "Class not found in Hyperloop generate js file in IOS. Added 3rd party sdk using cocoapods version 2. the 3rd party sdk is Zendesk Chat (https://developer.zendesk.com/embeddables/docs/chat-sdk-v-2-for-ios/introduction) \r\n\r\nfrom what i know the zendesk v2 is using -swift.h header. zendesk v1 chat is not and Im able to implement it.\r\n\r\nseems like all dotted class is having error", "attachment": [ { "id": "67525", "filename": "zdkchat.js", "author": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-04T12:11:11.000+0000", "size": 3440, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Class not found in Hyperloop generated file in createProxy code line", "creator": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "IOS Hyperloop generated files", "comment": { "comments": [ { "id": "456739", "author": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "body": "full error message:\r\n{code}\r\n[ERROR] : Cannot find class with name: ChatProvidersSDK.ZDKChat\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 32;\r\n[ERROR] : line = 120;\r\n[ERROR] : message = \"Cannot find class with name: ChatProvidersSDK.ZDKChat\";\r\n[ERROR] : nativeStack = \"1 libobjc.A.dylib 0x00007fff512539b2 objc_exception_throw + 48\\n2 Staging@uParcel 0x000000010fba0826 -[HyperloopClass dealloc] + 0\\n3 Staging@uParcel 0x000000010fb99784 NewProxy + 470\\n4 JavaScriptCore 0x00007fff26ca8cf8 _ZN3JSC19APICallbackFunction4callINS_18JSCallbackFunctionEEExPNS_14JSGlobalObjectEPNS_9CallFrameE + 568\\n5 ??? 0x000047d1c4601027 0x0 + 78966268366887\\n6 JavaScriptCore 0x00007fff26c6d59d llint_entry + 93344\\n7 JavaScriptCore 0x00007fff26c6d59d llint_entry + 93344\\n8 JavaScriptCore 0x00007fff26c6d59d llint_entry + 93344\\n9 JavaScriptCore 0x00007fff26c6d59d llint_entry + 93344\\n10 JavaScriptCore 0x00007fff26c6e182 llint_entry + 96389\\n11 JavaScriptCore 0x00007fff26c6d59d llint_entry + 93344\\n12 JavaScriptCore 0x00007fff26c5674f vmEntryToJavaScript + 200\\n13 JavaScriptCore 0x00007fff2708d525 _ZN3JSC11Interpreter11executeCallEPNS_14JSGlobalObjectEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 549\\n14 JavaScriptCore 0x00007fff272c77ea _ZN3JSC12profiledCallEPNS_14JSGlobalObjectENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 170\\n15 JavaScriptCore 0x00007fff26cbe5ac JSObjectCallAsFunction + 620\\n16 TitaniumKit 0x0000000110071b95 TiBindingEventProcess + 686\\n17 TitaniumKit 0x0000000110093062 -[KrollContext invoke:] + 109\\n18 TitaniumKit 0x00000001100930d5 -[KrollContext enqueue:] + 93\\n19 TitaniumKit 0x000000011009a6be TiBindingRunLoopEnqueue + 77\\n20 TitaniumKit 0x0000000110071c4b TiBindingEventProcess + 868\\n21 TitaniumKit 0x0000000110093062 -[KrollContext invoke:] + 109\\n22 TitaniumKit 0x00000001100930d5 -[KrollContext enqueue:] + 93\\n23 TitaniumKit 0x000000011009a6be TiBindingRunLoopEnqueue + 77\\n24 TitaniumKit 0x0000000110098f14 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\\n25 TitaniumKit 0x000000011007992f -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\\n26 TitaniumKit 0x0000000110098d21 -[TiProxy fireEvent:withObject:propagate:] + 76\\n27 TitaniumKit 0x000000011006aa67 -[TiUIView touchesEnded:withEvent:] + 110\\n28 UIKitCore 0x00007fff49362508 -[UIWindow _sendTouchesForEvent:] + 1359\\n29 UIKitCore 0x00007fff4936428d -[UIWindow sendEvent:] + 4501\\n30 UIKitCore 0x00007fff4933e6d1 -[UIApplication sendEvent:] + 356\\n31 Staging@uParcel 0x000000010fa02601 -[TiUIApplication sendEvent:] + 577\\n32 UIKitCore 0x00007fff493c94ce __dispatchPreprocessedEventFromEventQueue + 7628\\n33 UIKitCore 0x00007fff493cc692 __handleEventQueueInternal + 6584\\n34 UIKitCore 0x00007fff493c2f35 __handleHIDEventFetcherDrain + 88\\n35 CoreFoundation 0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\\n36 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76\\n37 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180\\n38 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974\\n39 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404\\n40 GraphicsServices 0x00007fff38c39bbe GSEventRunModal + 139\\n41 UIKitCore 0x00007fff49325968 UIApplicationMain + 1605\\n42 Staging@uParcel 0x000000010f9797fb main + 1115\\n43 libdyld.dylib 0x00007fff520ce1fd start + 1\\n44 ??? 0x0000000000000001 0x0 + 1\";\r\n[ERROR] : sourceURL = \"file:///Users/uParcel/Library/Developer/CoreSimulator/Devices/713D5C53-1021-4F7E-B515-B292D0183C1A/data/Containers/Bundle/Application/F8C7E7B8-4A10-42F2-A46E-75A9EDA6078C/Staging@uParcel.app/hyperloop/chatproviderssdk/zdkchat.js\";\r\n[ERROR] : stack = \"createProxy@[native code]\\n$initialize@file:///Users/uParcel/Library/Developer/CoreSimulator/Devices/713D5C53-1021-4F7E-B515-B292D0183C1A/data/Containers/Bundle/Application/F8C7E7B8-4A10-42F2-A46E-75A9EDA6078C/Staging@uParcel.app/hyperloop/chatproviderssdk/zdkchat.js:120:32\\nvalue@file:///Users/uParcel/Library/Developer/CoreSimulator/Devices/713D5C53-1021-4F7E-B515-B292D0183C1A/data/Containers/Bundle/Application/F8C7E7B8-4A10-42F2-A46E-75A9EDA6078C/Staging@uParcel.app/hyperloop/chatproviderssdk/zdkchat.js:107:28\\nversion2\\nController\\n\\n\";\r\n[ERROR] : type = Error;\r\n[ERROR] : }\r\n[ERROR] : -[__NSCFString count]: unrecognized selector sent to instance 0x7fcbc983ec00\r\n[ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x7fcbc983ec00'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (\r\n[ERROR] : \t0 CoreFoundation 0x00007fff23e3de6e __exceptionPreprocess + 350\r\n[ERROR] : \t1 libobjc.A.dylib 0x00007fff512539b2 objc_exception_throw + 48\r\n[ERROR] : \t2 CoreFoundation 0x00007fff23e5eb94 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132\r\n[ERROR] : \t3 CoreFoundation 0x00007fff23e4286c ___forwarding___ + 1436\r\n[ERROR] : \t4 CoreFoundation 0x00007fff23e44b58 _CF_forwarding_prep_0 + 120\r\n[ERROR] : \t5 TitaniumKit 0x00000001100851bf -[TiExceptionHandler showScriptError:] + 300\r\n[ERROR] : \t6 TitaniumKit 0x0000000110071bc4 TiBindingEventProcess + 733\r\n[ERROR] : \t7 TitaniumKit 0x0000000110093062 -[KrollContext invoke:] + 109\r\n[ERROR] : \t8 TitaniumKit 0x00000001100930d5 -[KrollContext enqueue:] + 93\r\n[ERROR] : \t9 TitaniumKit 0x000000011009a6be TiBindingRunLoopEnqueue + 77\r\n[ERROR] : \t10 TitaniumKit 0x0000000110071c4b TiBindingEventProcess + 868\r\n[ERROR] : \t11 TitaniumKit 0x0000000110093062 -[KrollContext invoke:] + 109\r\n[ERROR] : \t12 TitaniumKit 0x00000001100930d5 -[KrollContext enqueue:] + 93\r\n[ERROR] : \t13 TitaniumKit 0x000000011009a6be TiBindingRunLoopEnqueue + 77\r\n[ERROR] : \t14 TitaniumKit 0x0000000110098f14 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\r\n[ERROR] : \t15 TitaniumKit 0x000000011007992f -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\r\n[ERROR] : \t16 TitaniumKit 0x0000000110098d21 -[TiProxy fireEvent:withObject:propagate:] + 76\r\n[ERROR] : \t17 TitaniumKit 0x000000011006aa67 -[TiUIView touchesEnded:withEvent:] + 110\r\n[ERROR] : \t18 UIKitCore 0x00007fff49362508 -[UIWindow _sendTouchesForEvent:] + 1359\r\n[ERROR] : \t19 UIKitCore 0x00007fff4936428d -[UIWindow sendEvent:] + 4501\r\n[ERROR] : \t20 UIKitCore 0x00007fff4933e6d1 -[UIApplication sendEvent:] + 356\r\n[ERROR] : \t21 Staging@uParcel 0x000000010fa02601 -[TiUIApplication sendEvent:] + 577\r\n[ERROR] : \t22 UIKitCore 0x00007fff493c94ce __dispatchPreprocessedEventFromEventQueue + 7628\r\n[ERROR] : \t23 UIKitCore 0x00007fff493cc692 __handleEventQueueInternal + 6584\r\n[ERROR] : \t24 UIKitCore 0x00007fff493c2f35 __handleHIDEventFetcherDrain + 88\r\n[ERROR] : \t25 CoreFoundation 0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n[ERROR] : \t26 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76\r\n[ERROR] : \t27 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180\r\n[ERROR] : \t28 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974\r\n[ERROR] : \t29 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404\r\n[ERROR] : \t30 GraphicsServices 0x00007fff38c39bbe GSEventRunModal + 139\r\n[ERROR] : \t31 UIKitCore 0x00007fff49325968 UIApplicationMain + 1605\r\n[ERROR] : \t32 Staging@uParcel 0x000000010f9797fb main + 1115\r\n[ERROR] : \t33 libdyld.dylib 0x00007fff520ce1fd start + 1\r\n[ERROR] : \t34 ??? 0x0000000000000001 0x0 + 1\r\n[ERROR] : )\r\n[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-04T12:10:41.000+0000", "updated": "2020-09-10T11:37:17.000+0000" }, { "id": "457172", "author": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found out that the framework uses .swiftmodule \r\nHow do I access the swiftmodule class in javascript? ", "updateAuthor": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-06T14:51:27.000+0000", "updated": "2020-10-06T14:51:27.000+0000" }, { "id": "457181", "author": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found this code in https://github.com/shouse/awesome-hyperloop-titanium/tree/master/iOS\r\n\r\n{code:java}\r\n installer.pods_project.targets.each do |target|\r\n target.build_configurations.each do |config|\r\n config.build_settings['SWIFT_VERSION'] = '3.1'\r\n config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'\r\n config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'\r\n end\r\n end\r\n end\r\n{code}\r\n\r\nand this is my pod file\r\n\r\n{code:java}\r\ninstall! 'cocoapods', :integrate_targets => false\r\n\r\nuse_frameworks!\r\n\r\nplatform :ios, '10.0'\r\ntarget 'uParcel' do\r\n pod 'ZendeskChatSDK'\r\nend\r\n\r\npost_install do |installer|\r\n installer.pods_project.targets.each do |target|\r\n target.build_configurations.each do |config|\r\n config.build_settings['SWIFT_VERSION'] = '5.2'\r\n config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'\r\n config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'\r\n end\r\n end\r\nend\r\n{code}\r\n", "updateAuthor": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-07T14:32:49.000+0000", "updated": "2020-10-07T14:32:49.000+0000" }, { "id": "457182", "author": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "body": "but the generated javascript files still shows ChatProvidersSDK.ZDKChat \r\n\r\nwhich still cause the same error", "updateAuthor": { "name": "jinfante", "key": "jinfante", "displayName": "Jim Infante", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-07T14:34:48.000+0000", "updated": "2020-10-07T14:34:48.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }