Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Glympse API在针对iOS 7.1基本SDK进行编译时,我无法运行sendTicket(Glympse Lite API)_Ios_Glympse - Fatal编程技术网

Glympse API在针对iOS 7.1基本SDK进行编译时,我无法运行sendTicket(Glympse Lite API)

Glympse API在针对iOS 7.1基本SDK进行编译时,我无法运行sendTicket(Glympse Lite API),ios,glympse,Ios,Glympse,当我调用“[GlympseLiteWrapper实例].glympse->sendTicket(_glympseTicket,wizardFlags);” 我在线程1中得到一个调试器断点(异常): 它似乎起源于+[NSBundle(glympse)liteBundle]\u block\u invoke 还有谁有这个问题或者知道如何解决这个问题吗 Glympse API版本:1.0.5 我已经成功地在iOS 6和iOS 7.0上使用了1.0.2版,但在针对iOS 7.1构建Xcode 5.1时,

当我调用“[GlympseLiteWrapper实例].glympse->sendTicket(_glympseTicket,wizardFlags);”

我在线程1中得到一个调试器断点(异常): 它似乎起源于+[NSBundle(glympse)liteBundle]\u block\u invoke

还有谁有这个问题或者知道如何解决这个问题吗

Glympse API版本:1.0.5

我已经成功地在iOS 6和iOS 7.0上使用了1.0.2版,但在针对iOS 7.1构建Xcode 5.1时,似乎出现了这个问题

我确实设置了“-ObjC”标志

注意:我最初在错误的位置发布了此内容:

编辑#1:(我也尝试过使用iOS 7.0 base,所以现在我不确定发生了什么)下面是完整的堆栈跟踪: 线程1,队列:com.apple.main-Thread

#0  0x036948b9 in objc_exception_throw ()
#1  0x04d09fbb in +[NSException raise:format:] ()
#2  0x011bd78e in -[NSBundle initWithURL:] ()
#3  0x000bc78c in __31+[NSBundle(glympse) liteBundle]_block_invoke at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:35
#4  0x03a154d0 in _dispatch_client_callout ()
#5  0x03a04e12 in dispatch_once_f ()
#6  0x03a04d55 in dispatch_once ()
#7  0x000bc70d in _dispatch_once(long*, void () block_pointer) [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/dispatch/once.h:68
#8  0x000bc6f5 in +[NSBundle(glympse) liteBundle] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:34
#9  0x00115df6 in -[GLYConfiguratorViewerOwner ensureWindowCreated] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:113
#10 0x0011625c in -[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:166
#11 0x00115b7d in +[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:80
#12 0x001192ad in Glympse::ControlsFactory::showSendWizard(Glympse::O<Glympse::IGlympse> const&, Glympse::O<Glympse::ITicket> const&, bool, int, Glympse::O<Glympse::IUiControlListener> const&) at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/ControlsFactory.mm:23
#13 0x002a41a9 in Glympse::GlympseLite::sendTicket(Glympse::O<Glympse::ITicketLite> const&, int) ()
#14 0x00062b02 in -[LiveDataViewController sendGlympse] at /Users/sgano/Desktop/HotAir_v8.0.2/Classes/LiveDataViewController.mm:2845
#15 0x0005a82c in __40-[LiveDataViewController viewDidAppear:]_block_invoke at /Users/sgano/Desktop/HotAir_v8.0.2/Classes/LiveDataViewController.mm:475
#16 0x03a007b8 in _dispatch_call_block_and_release ()
#17 0x03a154d0 in _dispatch_client_callout ()
#18 0x03a029c6 in _dispatch_after_timer_callback ()
#19 0x03a154d0 in _dispatch_client_callout ()
#20 0x03a0be93 in _dispatch_source_latch_and_call ()
#21 0x03a0643f in _dispatch_source_invoke ()
#22 0x03a036b6 in _dispatch_main_queue_callback_4CF ()
#23 0x04d6f43e in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#24 0x04cb05cb in __CFRunLoopRun ()
#25 0x04caf9d3 in CFRunLoopRunSpecific ()
#26 0x04caf7eb in CFRunLoopRunInMode ()
#27 0x04a155ee in GSEventRunModal ()
#28 0x04a1542b in GSEventRun ()
#29 0x01546f9b in UIApplicationMain ()
#30 0x000029df in main at /Users/sgano/Desktop/HotAir_v8.0.2/main.m:14
#0 0x036948b9在objc_异常_抛出()
#+[N异常提升:格式:]()中的1 0x04d09fbb
#2 0x011bd78e in-[NSBundle initWithURL:]()
#3 0x000bc78c在uuu 31+[NSBundle(glympse)liteBundle]u block_u调用at/Users/egorpushkin/Projects/glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:35
#4 0x03a154d0位于调度客户调用中()
#5 0x03a04e12在调度中一次
#6 0x03a04d55在调度中一次()
#7 0x000bc70d在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/dispatch/one.h:68
#8 0x000bc6f5 in+[NSBundle(glympse)liteBundle]at/Users/egorpushkin/Projects/glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:34
#9 0x00115df6 in-[GLYConfiguratorViewerOwner EnsureWidowCreated]at/Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:113
#10 0x0011625c in-[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:]at/Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:166
#11 0x00115b7d in+[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:]at/Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:80
#12 0x001192ad,位于/Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/ControlsFactory.mm:23
#Glympse::GlympseLite::sendTicket中的13 0x002a41a9(Glympse::O const&,int)()
#14 0x00062b02英寸-[LiveDataViewController sendGlympse]at/Users/sgano/Desktop/HotAir_v8.0.2/Classes/LiveDataViewController.mm:2845
#15 0x0005a82c在-uuuu 40-[LiveDataViewController ViewDidDisplay:][uBlock]中调用/Users/sgano/Desktop/HotAir\uv8.0.2/Classes/LiveDataViewController.mm:475
#16 0x03a007b8在调度、呼叫、阻塞和释放()
#17 0x03a154d0位于调度客户调用中()
#18 0x03a029c6在计时器回调()后发送
#19 0x03a154d0位于调度客户调用中()
#20 0x03a0be93在调度源锁存器和调用中()
#21 0x03a0643f在调度源调用()中
#22 0x03a036b6在调度主队列回调4CF()中
#23 0x04d6f43e在CFRUNLOOP中为主调度队列提供服务
#24 0x04cb05cb在\uuuu CFRunLoopRun()中
#CFRunLoopRunSpecific()中的25 0x04caf9d3
#26 0x04caf7eb处于CFRUNLOOP运行模式()
#GSEventRunModal()中的27 0x04a155ee
#GSEventRun()中的28 0x04a1542b
#UIApplicationMain()中的29 0x01546f9b
#30 0x000029df在主at/Users/sgano/Desktop/HotAir_v8.0.2/main.m:14

我相信我刚刚解决了这个问题!我需要将“GlympseResourcesLite.bundle”添加到目标的构建阶段部分的复制捆绑资源区域。一旦我这样做了,它就清除了异常

您可能希望将该注释(以及-ObjC链接器标志要求)添加到客户机集成指南中——这可能有助于未来的开发人员

注:我是通过阅读abbood对这个问题的回答得出这个想法的:

您能附上您看到的崩溃的完整堆栈跟踪吗?当然可以;我刚刚添加了它。@ShawnG谢谢你在这里发布这个问题,我正在调查,会尽快回复你的。作为补充说明,运行1.0.5下载中包含的历史记录示例是否会产生相同的崩溃?是的-这些示例在iOS 7.1下运行良好。(虽然时钟和电池图标出现在Glympse视图的顶部,但这是另一个问题,如果我能做到这一点,我会非常高兴)。这意味着我的项目中存在一些设置/标志/或问题,没有正确调用Glympse SDK。我仍在挖掘以找出不同之处。在迁移到iOS 7之前,我确实做过这项工作;试图弄清楚发生了什么变化。我真的抓住了差异,不确定这是否意味着什么,但在我的GlympseLiteWrapper(与演示完全相同)中,“\u apiKey=Glympse::LiteFactory::createString”一行在Xcode中都是绿色的,但在演示中,同一行大部分是蓝色的。这是否意味着框架未正确加载?感谢您对此进行跟进,非常感谢。文档更新已排队等待。再次感谢!