Google Map问题

我进的google的官网下载了Google Map的sdk的GoogleMaps.framework的库申请了MapKey值,我新建一个工程,将所有的库导入工程,添加了官网的代码如下
#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''
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值