Search code examples
iosswiftmapsviewcontrollergmsmapview

How can i use two GMSMapViews in single project in iOS Swift


In my project i am using GMSMapView in two ViewControllers. My project contain two types of logins . So i created two StoryBoards. two logins contains two types of google maps. I taken UIView for GMSMapView. If i try to use two Maps.My app giving following crash.Here my question is how can i use two GMSMapViews in single project?. please give me suggestions to fix this issue.

libc++abi.dylib: terminating with uncaught exception of type NSException

Following code is my Outlet connection for GMSMapView.

 @IBOutlet weak var mapView: GMSMapView!

Solution

  • How wonder it is i don't know now its working with out showing any error. i did Alt+Shift+command+K and quit Xcode restart it and run again its working fine for me.