NSThread gtm_performBlock Error

橙三吉。 提交于 2019-12-12 14:24:46

问题


I am trying to run the Street View example in the Google Maps SDK for iOS docs and am getting the following error:

`-[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.

The strange thing is that I can get Street View to work in some projects and not others. I have tried both the Google 1.4.3 and 1.4.2 Frameworks and still get this error. Any idea what is causing it?


回答1:


Choose your project, rather than a specific target, and open the Build Settings tab:

-In the Other Linker Flags section, add -ObjC. If these settings are not visible, change the filter in the Build Settings bar from Basic to All.

Source: https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios



来源:https://stackoverflow.com/questions/18940147/nsthread-gtm-performblock-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!