GMSCoreResources.bundle未加载

时间:2013-07-29 20:57:57

标签: iphone google-maps google-maps-sdk-ios

我正在尝试使用Google Maps API,但是当我在应用程序中打开地图时出现此错误:

  

无法找到CFBundle的可执行文件0x155a7f70 /GoogleMapTest.app/GoogleMaps.bundle/GMSCoreResources.bundle> (未加载)

其他人收到此错误?这是我在我的应用程序中启动地图时使用的代码:

- (void)loadView {
// Create a GMSCameraPosition that tells the map to display the
// coordinate -33.86,151.20 at zoom level 6.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:40.468193
                                                        longitude:-74.445184
                                                             zoom:6];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;

// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.map = mapView_;
}

0 个答案:

没有答案