{"id":15,"date":"2014-10-01T00:26:51","date_gmt":"2014-10-01T00:26:51","guid":{"rendered":"http:\/\/macfam.me\/phonegap-blog\/?p=7"},"modified":"2017-04-30T01:11:00","modified_gmt":"2017-04-30T01:11:00","slug":"problems-with-the-phonegap-cordova-geolocation-plugin-on-ios-8","status":"publish","type":"post","link":"https:\/\/appsbyjohn.com\/learn\/problems-with-the-phonegap-cordova-geolocation-plugin-on-ios-8\/","title":{"rendered":"Problems with the Phonegap\/Cordova geolocation plugin on iOS 8"},"content":{"rendered":"<p>Are you having issues with your location aware Phonegap app on iOS 8? I did too. My first attempt to deploy an existing app through Xcode on an iOS 8 device did not work. The application would not recognize my iPhone location.<\/p>\n<p>Here is the quick solution:<br \/>\n<!--more--><\/p>\n<ol>\n<li>In Xcode click on your app name in\u00a0the sidebar<\/li>\n<li>Click the\u00a0<strong>Build Phases\u00a0<\/strong>tab<\/li>\n<li>Expand the\u00a0<strong>Compile Sources\u00a0<\/strong>section<\/li>\n<li>Click the <b>+\u00a0<\/b>sign and add\u00a0<strong>CDVLocation.m\u00a0<\/strong>to the list of sources<\/li>\n<\/ol>\n<p>That should do the trick. If not, try reinstalling the plugin:<\/p>\n<ol>\n<li>In Terminal navigate to the project folder<\/li>\n<li>cordova plugin rm org.apache.cordova.geolocation<\/li>\n<li>cordova plugin add org.apache.cordova.geolocation<\/li>\n<li>cordova build<\/li>\n<\/ol>\n<p>If you still have issues after this you need to <a href=\"http:\/\/docs.phonegap.com\/en\/3.5.0\/guide_cli_index.md.html#The%20Command-Line%20Interface\">create a new cordova project<\/a>, add all of the plugins, copy all resources (www folder, splash screens, and icons) and rebuild.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you having issues with your location aware Phonegap app on iOS 8? I did too. My first attempt to deploy an existing app through Xcode on an iOS 8 device did not work. The application would not recognize my iPhone location. Here is the quick solution:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-hybrid-app-development"],"_links":{"self":[{"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":2,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":296,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/posts\/15\/revisions\/296"}],"wp:attachment":[{"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsbyjohn.com\/learn\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}