2015-05-29 52 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