GoogleMaps basic iOS demo app crash - unrecognized selector sent to instance

前端 未结 9 1831
野趣味
野趣味 2020-11-30 12:45

Im trying to run the basic iOS demo SDK code. I have created the API keyand it loads ok. Although i\'ve transfered the code from viewDidLoad to loadView the effect remains.

9条回答
  •  醉话见心
    2020-11-30 13:32

    You most probably have forgotten to do this: (as stated in the google docs)

    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.

提交回复
热议问题