当我们从TestFlight或Diawi下载构建时,iOS谷歌地图会出现问题

当我们从TestFlight或Diawi下载构建时,iOS谷歌地图会出现问题,ios,objective-c,iphone,google-maps,Ios,Objective C,Iphone,Google Maps,我们已经在我的应用程序中实现了谷歌地图SDK。如果我们从mac上安装构建,它可以正常工作,但是如果我们从diawi或TestFlight下载构建,应用程序在启动地图时崩溃 // Create a GMSCameraPosition that tells the map to display the coordinate at zoom level 6 GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:[cu

我们已经在我的应用程序中实现了谷歌地图SDK。如果我们从mac上安装构建,它可以正常工作,但是如果我们从diawi或TestFlight下载构建,应用程序在启动地图时崩溃

// Create a GMSCameraPosition that tells the map to display the coordinate at zoom level 6
    GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:[currentlat doubleValue]
                                                            longitude:[currentlong doubleValue]
                                                                 zoom:11];

    //check screen resolution
    if (screenSize.height>480)
    {
        //iphone 5
        mapBaseView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);

      mapview  = [GMSMapView mapWithFrame:CGRectMake(0, 0, mapBaseView.frame.size.width, mapBaseView.frame.size.height) camera:camera];
          }
    else
    {
        //iphone 4
        mapBaseView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
         mapview = [GMSMapView mapWithFrame:CGRectMake(0, 0, mapBaseView.frame.size.width, mapBaseView.frame.size.height) camera:camera];
        }
    mapview.myLocationEnabled = YES;
    mapview.delegate=self;
    mapview.mapType=kGMSEarthRadius;
    [mapBaseView addSubview:mapview];

检查来自Xcode的崩溃报告。从Xcode菜单窗口->管理器->单击左侧窗格中的应用程序,然后单击崩溃选项卡。请参阅崩溃日志。当你们点击崩溃时,它会显示精确的行。检查Xcode的崩溃报告。从Xcode菜单窗口->管理器->单击左侧窗格中的应用程序,然后单击崩溃选项卡。请参阅崩溃日志。当你点击崩溃,它会显示准确的线。