我正在尝试将GTM(V5.0)添加为我的iOS框架的依赖项。将GoogleAnalytics转换为框架后,我能够构建我的框架。我已将容器文件夹和GTM-XXX.json文件一起添加到项目中。但是,当我尝试使用框架运行应用程序时,它崩溃了以下异常。
frame #0: 0x000000010b403939 CoreFoundation`CFStringGetLength + 9
frame #1: 0x0000000108610904 JavaScriptCore`JSStringCreateWithCFString + 36
frame #2: 0x000000010859b315 JavaScriptCore`-[JSContext evaluateScript:withSourceURL:] + 37
frame #3: 0x000000010a91d6be testSDK`-[TAGRuntime initWithContainerId:resource:hitStore:dispatchScheduler:] + 454
frame #4: 0x000000010a9136f6 testSDK`__55-[TAGContainer handleLoadOfContainerData:errorMessage:]_block_invoke + 305
frame #5: 0x000000010b00e978 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #6: 0x000000010b0380cd libdispatch.dylib`_dispatch_client_callout + 8
frame #7: 0x000000010b015e17 libdispatch.dylib`_dispatch_queue_serial_drain + 236
frame #8: 0x000000010b016b4b libdispatch.dylib`_dispatch_queue_invoke + 1073
frame #9: 0x000000010b01702b libdispatch.dylib`_dispatch_queue_override_invoke + 683
frame #10: 0x000000010b019385 libdispatch.dylib`_dispatch_root_queue_drain + 720
frame #11: 0x000000010b019059 libdispatch.dylib`_dispatch_worker_thread3 + 123
frame #12: 0x000000010b3e14de libsystem_pthread.dylib`_pthread_wqthread + 1129
frame #13: 0x000000010b3df341 libsystem_pthread.dylib`start_wqthread + 13
GTM在直接包含在目标应用程序而不是框架中时工作正常。有没有人在iOS动态框架中成功使用过GTM?任何帮助都非常感谢。
由于