2

我正在尝试使用 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_;
}
4

0 回答 0