2015-05-29 51 views
0

谷歌地图SDK谷歌地图SDK崩溃会使我的应用程序崩溃,我不知道我做错了什么...... 我把我的GMSMapView中的UIView接口生成器。上ItunesConnect测试不Xcode的

这里是我的代码: Contact.h

#import <UIKit/UIKit.h> 
#import <MessageUI/MessageUI.h> 
#import <ParseFacebookUtils/PFFacebookUtils.h> 
#import <GoogleMaps/GoogleMaps.h> 

@interface Contact : UIViewController <MFMailComposeViewControllerDelegate> 

- (IBAction)openMail:(id)sender; 
@property (weak, nonatomic) IBOutlet GMSMapView *mapView; 
@property (weak, nonatomic) IBOutlet UILabel *contactLabel; 


@end 

Contact.m

#import "Contact.h" 


@interface Contact() 

@end 

@implementation Contact 

- (void)viewDidLoad { 
    [super viewDidLoad]; 

#pragma mark - Google Map API 
    GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude: 54.481151 
                  longitude: -8.272278 zoom: 15]; 
    [self.mapView animateToCameraPosition:camera]; 
    GMSMarker *marker = [ [GMSMarker alloc] init]; 
    marker.position = camera.target; 
    marker.title = @"Bundoran Surf Co"; 
    marker.snippet = @"Main Street"; 
    marker.map = self.mapView; 
} 

我symbolicated从苹果的应用程序崩溃,并且崩溃在这条线当视图出现时:

[self.mapView animateToCameraPosition:camera]; 

这里是我的配置 enter image description here

enter image description here

回答

2

您从发布版本连接标志等什么被提交到App Store并不完全反映您正在调试什么缺少“-ObjC”标志。

如果编辑的运行计划,你应该能够选择Release构建配置和重现此

从这里:GoogleMaps basic iOS demo app crash - unrecognized selector sent to instance

+0

嗨,伙计,谢谢回复!但是我不知道如何访问Run方案? – Viny76

+0

https://developer.apple.com/library/mac/recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html – chedabob

+0

你是对的!我现在可以重现崩溃! – Viny76