我进的google的官网下载了Google Map的sdk的GoogleMaps.framework的库申请了MapKey值,我新建一个工程,将所有的库导入工程,添加了官网的代码如下
运行后报如下错误:求解
Warning: Error creating LLDB target at path '/Users/yons/Library/Developer/Xcode/DerivedData/TestViewController-gturohgfhmgjsldzoyegdzmrzdln/Build/Products/Debug-iphonesimulator/TestViewController.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
2014-11-21 08:49:36.820 TestViewController[480:4576] *** Terminating app due to uncaught exception 'GMSServicesException', reason: 'GoogleMaps.bundle requires Google Maps SDK for iOS to be part of your target under 'Copy Bundle Resources''
#import "ViewController.h"
#import <GoogleMaps/GoogleMaps.h>
@interface ViewController ()
@end
@implementation ViewController
@synthesize mapView_;
- (void)viewDidLoad {
[super viewDidLoad];
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;
GMSMarker *marker = [[GMSMarker alloc]init];
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.map = mapView_;
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
运行后报如下错误:求解
Warning: Error creating LLDB target at path '/Users/yons/Library/Developer/Xcode/DerivedData/TestViewController-gturohgfhmgjsldzoyegdzmrzdln/Build/Products/Debug-iphonesimulator/TestViewController.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
2014-11-21 08:49:36.820 TestViewController[480:4576] *** Terminating app due to uncaught exception 'GMSServicesException', reason: 'GoogleMaps.bundle requires Google Maps SDK for iOS to be part of your target under 'Copy Bundle Resources''