Can not get the demo to run
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
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.
Hi Gary,
I made the changes and I still have the problem. I think the problem is this: "890: MGIsDeviceOneOfType is not supported on this platform.”
Thanks Howard
On Nov 28, 2018, at 2:08 PM, Gary Tokman [email protected] wrote:
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 navigating to the project -> General -> Deployment Info and delete the value in the Main Interface field.
https://user-images.githubusercontent.com/12258850/49185565-4536d000-f330-11e8-8814-4bc76bce48b1.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gtokman/Restaurant-Viewing-App/issues/7#issuecomment-442623794, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVFjBg3xhuPu8k2rHnnN17rgIoNetE_ks5uzwl1gaJpZM4Y4ORu.
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()
}