ItunesConnect上的Google Maps SDK崩溃testing不是Xcode

Google Maps SDK让我的应用程序崩溃,我不知道我在做什么错误…我把我的GMSMapView在界面生成器中的UIView

这是我的代码: 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; } 

我象征着苹果的应用程序崩溃,当视图出现时,崩溃在这条线上:

 [self.mapView animateToCameraPosition:camera]; 

这是我的configuration 在这里输入图像说明

在这里输入图像说明

您从发布版本链接器标志中缺less“-ObjC”标志,因此提交给App Store的内容并不能完全反映您正在debugging的内容。

如果你编辑运行scheme,你应该能够selectRelease构buildconfiguration并重现这一点

从这里: GoogleMaps基本的iOS演示应用程序崩溃 – 无法识别的select器发送到实例