2014-10-06 22 views
0

我在測試我的應用程序,每當我試圖打開使用地圖應用程序終止視圖,並顯示該錯誤Debug糾錯的Xcode 6-使用谷歌地圖SDK

「NSInvalidArgumentException」的,理由是:「** * - [一個NSBundle initWithURL:]: 零URL參數」

,我寫我的代碼是這樣的:

CGRect s = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height-50); 

    GMSCameraPosition *theCamera = [GMSCameraPosition cameraWithLatitude:locationManager.location.coordinate.latitude 
                  longitude:locationManager.location.coordinate.longitude 
                    zoom:18]; 


    self.mapView= [GMSMapView mapWithFrame:s camera:theCamera]; 

這是我的,男初始化地圖。

這是在控制檯完整的錯誤消息:

終止應用程序由於未捕獲的異常 'NSInvalidArgumentException' 的,理由是: '* - [一個NSBundle initWithURL:]: 零URL參數' *第一擲調用堆棧:(0x187e52084 0x1984300e4 0x187e51fc4 0x188cadc08 0x188cadb84 0x100377ba8 0x100377b28 0x1003a8dc8 0x100aa4ee0 0x100aa5dec 0x1003a8bb8 0x1003a638c 0x1003a62b4 0x1003a6d18 0x10039f330 0x10039ecb8 0x10039eb50 0x1001957dc 0x18c5d4ccc 0x18c5d49dc 0 x18ccc0644 0x18c8ce674 0x18c8e9588 0x18c8eb99c 0x18c6c1c88 0x1001adc64 0x18c608e68 0x18c5f1fc0 0x18c608804 0x18c608490 0x18c6019e4 0x18c5d51d4 0x18c87398c 0x18c5d373c 0x187e0a324 0x187e095c8 0x187e07678 0x187d35664 0x190e775a4 0x18c63a4f8 0x100081c00 0x198a9ea08)的libC++ abi.dylib: 型NSException(LLDB的未捕獲的異常)

回答