我正在尝试在Google Maps SDK for iOS文档中运行街景示例,并收到以下错误: `-[NSThread gtm_performBlock:]: unrecognized selector sent to instance 0x1d55d1f0. *** Terminating app due to uncaught exception ‘NSInvalidArgum
`-[NSThread gtm_performBlock:]: unrecognized selector sent to instance 0x1d55d1f0.
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSThread gtm_performBlock:]: unrecognized selector sent to instance 0x1d55d1f0’.
libc++abi.dylib: terminate called throwing an exception.
奇怪的是,我可以让街景视图在某些项目中工作而不是其他项目.我已经尝试了Google 1.4.3和1.4.2框架,但仍然遇到此错误.知道是什么原因引起的吗?
选择项目而不是特定目标,然后打开“构建设置”选项卡:– 在Other Linker Flags部分中,添加-ObjC.如果看不到这些设置,请将“构建设置”栏中的过滤器从“基本”更改为“全部”.
资源:
https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios