mapbox/mapbox-navigation-ios

[Bug]: Example build suceeds but screen is black

Closed this issue · 2 comments

Mapbox Navigation SDK version

2.15.0

Steps to reproduce

Clone example folder from mapbox/mapbox-navigation-ios and build on Xcode

or clone directly from my repo: https://github.com/samuelalake/mapbox-navigation-example

Expected behavior

Build succeeds and user is able to access or navigate between views and examples

Actual behavior

White screen shows up first and then the screen goes blank.

Output in console:
2023-08-18 16:46:33.207321-0700 mapbox-example[48163:87257911] [SceneConfiguration] Info.plist configuration "ExampleAppConfiguration" for UIWindowSceneSessionRoleApplication contained UISceneDelegateClassName key, but could not load class with name "mapbox-example.SceneDelegate".
2023-08-18 16:46:33.923466-0700 mapbox-example[48163:87257911] [WindowScene] There is no scene delegate set. A scene delegate class must be specified to use a main storyboard file.

From reading stack overflow, this has something to do with scene delegate vs app delegate updated requirement in iOS 13. I noticed that the app delegate file already has the necessary "@available" markers. I tried adding a scene delegate file too and making changes to info.plist to use scene delegate but still get the same error.

Any guidance is appreciated.

Is this a one-time issue or a repeatable issue?

repeatable

Closing issue.

The change I had to make to get this working was to change EXECUTABLE_NAME in info.plist to PRODUCT_MODULE_NAME

Screenshot 2023-08-19 at 12 51 19 AM

Hey @samuelalake, the contributing guide contains steps on how to build our Example app. MapboxNavigation-SPM.xcodeproj contains an Example target, this is the expected way to build the app.