{"action":"created","issue":{"url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/16","labels_url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/16/comments","events_url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/16/events","html_url":"https://github.com/cowbell/cordova-plugin-geofence/issues/16","id":55716020,"number":16,"title":"Build on iOS failed","user":{"login":"PaperMonster","id":10735822,"avatar_url":"https://avatars.githubusercontent.com/u/10735822?v=3","gravatar_id":"","url":"https://api.github.com/users/PaperMonster","html_url":"https://github.com/PaperMonster","followers_url":"https://api.github.com/users/PaperMonster/followers","following_url":"https://api.github.com/users/PaperMonster/following{/other_user}","gists_url":"https://api.github.com/users/PaperMonster/gists{/gist_id}","starred_url":"https://api.github.com/users/PaperMonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaperMonster/subscriptions","organizations_url":"https://api.github.com/users/PaperMonster/orgs","repos_url":"https://api.github.com/users/PaperMonster/repos","events_url":"https://api.github.com/users/PaperMonster/events{/privacy}","received_events_url":"https://api.github.com/users/PaperMonster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-28T05:25:53Z","updated_at":"2015-02-01T11:22:47Z","closed_at":null,"body":"Hi, I've been trying to build my Cordova (+Ionic) project using this plugin on Android and iOS. Building and running on Android went smoothly, but failed on iOS. Here is what I've done so far:\r\n\r\n1) Add the plugin using `cordova plugin add https://github.com/cowbell/cordova-plugin-geofence`\r\n2) Add iOS platform `ionic platform add ios`\r\n3) Run on iOS simulator\r\n````\r\nionic emulate ios\r\n````\r\nThe error occured:\r\n\r\n        Check dependencies\r\n        Swift is unavailable on iOS earlier than 7.0; please set IPHONEOS_DEPLOYMENT_TARGET to 7.0 or later (currently it is '6.0').\r\n        \r\n        ** BUILD FAILED **\r\n        \r\n        \r\n        The following build commands failed:\r\n        \tCheck dependencies\r\n        (1 failure)\r\n        Error: /Users/rasita.sa/Documents/myPhonegap/shobshopClient/platforms/ios/cordova/run: Command failed with exit code 65\r\n            at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)\r\n            at ChildProcess.emit (events.js:98:17)\r\n            at maybeClose (child_process.js:756:16)\r\n            at Process.ChildProcess._handle.onexit (child_process.js:823:5)\r\n\r\n\r\n 4) Open the Xcode project in platforms/ios and change the project's and target's iOS Deployment Target from 6.0 to 7.0. After hitting Run button I found another error:\r\n![screen shot 2015-01-28 at 12 09 33 pm](https://cloud.githubusercontent.com/assets/10735822/5932746/8fcbfb8a-a6e6-11e4-9f47-c484ced8c30e.png)\r\n\r\nI also try adding and building iOS platform in the sample application, got the same result.\r\n\r\nCordova version: 3.6.3-0.2.13\r\nIonic version: 1.0.0-beta.13\r\n\r\nDid I do something wrong?"},"comment":{"url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/comments/72360908","html_url":"https://github.com/cowbell/cordova-plugin-geofence/issues/16#issuecomment-72360908","issue_url":"https://api.github.com/repos/cowbell/cordova-plugin-geofence/issues/16","id":72360908,"user":{"login":"tsubik","id":1286444,"avatar_url":"https://avatars.githubusercontent.com/u/1286444?v=3","gravatar_id":"","url":"https://api.github.com/users/tsubik","html_url":"https://github.com/tsubik","followers_url":"https://api.github.com/users/tsubik/followers","following_url":"https://api.github.com/users/tsubik/following{/other_user}","gists_url":"https://api.github.com/users/tsubik/gists{/gist_id}","starred_url":"https://api.github.com/users/tsubik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsubik/subscriptions","organizations_url":"https://api.github.com/users/tsubik/orgs","repos_url":"https://api.github.com/users/tsubik/repos","events_url":"https://api.github.com/users/tsubik/events{/privacy}","received_events_url":"https://api.github.com/users/tsubik/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T11:22:47Z","updated_at":"2015-02-01T11:22:47Z","body":"If `IPHONEOS_DEPLOYMENT_TARGET` wasn't set up to `7.0` it means that [preparing script](https://github.com/cowbell/cordova-plugin-geofence/blob/master/hooks/add_swift_support.js) had not worked properly. I've changed it a little bit because it was failing if node dependencies wasn't installed. Now it is using only node core modules. From [that line](https://github.com/cowbell/cordova-plugin-geofence/blob/master/hooks/add_swift_support.js#L46) you have all steps needed to enable swift support in xcode project plus `libsqlite3.dylib` is added. Of course you can perform all of these steps manually."}}