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