Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get the demo to run #7

Open
hsmith825 opened this issue Nov 28, 2018 · 3 comments
Open

Can not get the demo to run #7

hsmith825 opened this issue Nov 28, 2018 · 3 comments

Comments

@hsmith825
Copy link

Gary,

I down loaded the demo, set the team and hit run in xcoe with an iPhone 6 connected. I get the error: "Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?" . I set the entry point to Locateion, Restaurants, and Title and it all cases I get the error: "The app delegate must implement the window property if it wants to use a main storyboard file."

What must I do to get it to run?

Thanks!
Howard

@gtokman
Copy link
Owner

gtokman commented Nov 28, 2018

I couldn't reproduce the problem, we don't need to set the entry point because we're setting the windows rootViewController in the AppDelegate. When you download the project are you opening the RestaurantApp.xcworkspace?

Also, make sure you have the latest Xcode and downloading the last version of the project. Lastly, you can try going to the project -> General -> Deployment Info and delete the value in the Main Interface field.

screen shot 2018-11-28 at 5 07 34 pm

@hsmith825
Copy link
Author

hsmith825 commented Nov 29, 2018 via email

@emrdgrmnci
Copy link

Hi @hsmith825 if you update your location service status default case to below code block your issue will be solve.

switch locationService.status {

        case .notDetermined, .denied, .restricted:
            let locationViewController = storyboard.instantiateViewController(withIdentifier: "LocationViewController") as? LocationViewController
            locationViewController?.locationService = locationService
            window.rootViewController = locationViewController
        default:
            let nav = storyboard.instantiateViewController(withIdentifier: "RestaurantNavigationController") as? UINavigationController
            window.rootViewController = nav
            loadBusinesses()
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants