Ios GMSPlacesClient给我一个nil URL的例外
我想通过placeID获取有关地点的详细信息。 我正在使用谷歌地图APIIos GMSPlacesClient给我一个nil URL的例外,ios,objective-c,google-maps,Ios,Objective C,Google Maps,我想通过placeID获取有关地点的详细信息。 我正在使用谷歌地图API GMSPlacesClient *tempClient = [GMSPlacesClient sharedClient]; 当我试图创建GMSPlacesClient的实例时,应用程序崩溃 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: ni
GMSPlacesClient *tempClient = [GMSPlacesClient sharedClient];
当我试图创建GMSPlacesClient的实例时,应用程序崩溃
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'
libc++abi.dylib: terminating with uncaught exception of type NSException.
提前感谢。确保您在主线程中调用此方法。@Krupanshu我只在主线程中调用此方法。您找到解决方案了吗?确保您在主线程中调用此方法。@Krupanshu我只在主线程中调用此方法。您找到解决方案了吗?