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];
这里是我的配置
嗨,伙计,谢谢回复!但是我不知道如何访问Run方案? – Viny76
https://developer.apple.com/library/mac/recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html – chedabob
你是对的!我现在可以重现崩溃! – Viny76