react-native-mapbox-navigation icon indicating copy to clipboard operation
react-native-mapbox-navigation copied to clipboard

iOS fatal error

Open zoolle opened this issue 4 years ago • 0 comments

While trying to initialise the navigator I get the following in Xcode 13

MapboxCoreNavigation/NavigationEventsManager.swift:85: Fatal error: Unexpectedly found nil while unwrapping an Optional value

func start() {
        let userAgent = usesDefaultUserInterface ? "mapbox-navigation-ui-ios" : "mapbox-navigation-ios"
      Line 85 >>>>>  mobileEventsManager.initialize(withAccessToken: accessToken, userAgentBase: userAgent, hostSDKVersion: String(describing: Bundle.mapboxCoreNavigation.object(forInfoDictionaryKey: "CFBundleShortVersionString")!))
        mobileEventsManager.disableLocationMetrics()
        mobileEventsManager.sendTurnstileEvent()
    }

After that kills the app

zoolle avatar Oct 07 '21 09:10 zoolle