From the course: Advanced iOS App Development: MapKit & Core Location

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Run the location app

Run the location app - iOS Tutorial

From the course: Advanced iOS App Development: MapKit & Core Location

Start my 1-month free trial

Run the location app

- [Instructor] Once you have authorizations and the location delegate set correctly, you are ready to run your app again. However, there are a few things you'll need to know about running Core Location on a simulator and on real devices. Scroll up to the top of the view controller code. This way you can see the comment block with the coordinates. We're going to set coordinates in the simulator. Open the simulator. In the simulator drop down menus, select debug, location. You see a list of locations, and select Apple if not already selected. With your simulator set to an iPhone 7 Plus, go ahead and run the app. Tap the here button. You get the permissions alert. Go ahead and allow it. Tap here again if you're still in Naples. The app will run and you'll find the location dot sitting in the middle of a parking lot at one infinite loop. You'll notice there is location information in the console. Tap the type button to see a satellite image. You'll notice that console only has a single…

Contents