1 - Include the CoreLocation.framework in your project; this is accomplished by clicking on:
root directory -> build phases -> Link Binary With Libraries
Click on the (+) button, look for CoreLocation.framework and click add.
2- Modify the info.plist file to ask for permission to use user...