{"action":"created","issue":{"url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/263","repository_url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK","labels_url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/263/comments","events_url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/263/events","html_url":"https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/263","id":269394148,"number":263,"title":"OneSignal-Cordova-SDK fails when added on ionic 3 project","user":{"login":"topalavlad","id":2983957,"avatar_url":"https://avatars3.githubusercontent.com/u/2983957?v=4","gravatar_id":"","url":"https://api.github.com/users/topalavlad","html_url":"https://github.com/topalavlad","followers_url":"https://api.github.com/users/topalavlad/followers","following_url":"https://api.github.com/users/topalavlad/following{/other_user}","gists_url":"https://api.github.com/users/topalavlad/gists{/gist_id}","starred_url":"https://api.github.com/users/topalavlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topalavlad/subscriptions","organizations_url":"https://api.github.com/users/topalavlad/orgs","repos_url":"https://api.github.com/users/topalavlad/repos","events_url":"https://api.github.com/users/topalavlad/events{/privacy}","received_events_url":"https://api.github.com/users/topalavlad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-29T12:10:58Z","updated_at":"2017-10-31T02:51:39Z","closed_at":"2017-10-31T02:51:39Z","author_association":"NONE","body":"```\r\nnode version: 8.4.0\r\nnpm version: 5.5.1\r\ncordova version: 7.1.0\r\nionic version: 3.15.2\r\n```\r\n\r\npackage.json:\r\n```\r\n\"cordova-ios\": \"^4.5.2\",\r\n\"@ionic-native/core\": \"^3.6.0\",\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\nRunning `pod install` (to install plugins)\r\nFailed to install 'onesignal-cordova-plugin': undefined\r\nError: Version should contain only numbers and dots\r\n```\r\n\r\nI kind of tried everything, different versions, but I couldn't get it to work.\r\n`pod repo update` also didn't help, and the most frustrating part is that I don't understand the error 😞 . I searched all around the project, and everywhere the version was \"2.2.2\" so it's only numbers and dots.\r\n\r\nFull log:\r\n```\r\ncordova plugin add onesignal-cordova-plugin --save -d\r\nNo scripts found for hook \"before_plugin_add\".\r\nNo version specified for onesignal-cordova-plugin, retrieving version from config.xml\r\nNo version for onesignal-cordova-plugin saved in config.xml or package.json\r\nAttempting to use npm info for onesignal-cordova-plugin to choose a compatible release\r\nnpm info for onesignal-cordova-plugin did not contain any engine info. Fetching latest release\r\nCalling plugman.fetch on plugin \"onesignal-cordova-plugin\"\r\nsaving\r\nRunning command: npm install onesignal-cordova-plugin --production --save\r\nCommand finished with error code 0: npm install,onesignal-cordova-plugin,--production,--save\r\nCopying plugin \"repo/node_modules/onesignal-cordova-plugin\" => \"repo/plugins/onesignal-cordova-plugin\"\r\nCalling plugman.install on plugin \"repo/plugins/onesignal-cordova-plugin\" for platform \"android\r\nInstalling \"onesignal-cordova-plugin\" for android\r\nRunning command: repo/platforms/android/cordova/version \r\nCommand finished with error code 0: repo/platforms/android/cordova/version \r\nFinding scripts for \"before_plugin_install\" hook from plugin onesignal-cordova-plugin on android platform only.\r\nNo scripts found for hook \"before_plugin_install\".\r\nInstall start for \"onesignal-cordova-plugin\" on android.\r\nPlatformApi successfully found for platform android\r\nBeginning processing of action stack for android project...\r\nInstalling Android library: com.onesignal:OneSignal:3.6.3\r\nInstalling Android library: build-extras-onesignal.gradle\r\nAction stack processing complete.\r\nUpdating build files since android plugin contained <framework>\r\nSubproject Path: CordovaLib\r\nInstall complete for onesignal-cordova-plugin on android.\r\nFinding scripts for \"after_plugin_install\" hook from plugin onesignal-cordova-plugin on android platform only.\r\nNo scripts found for hook \"after_plugin_install\".\r\nCalling plugman.install on plugin \"repo/plugins/onesignal-cordova-plugin\" for platform \"ios\r\nMacBook-Air:$ cordova plugin add onesignal-cordova-plugin --save -d\r\nNo scripts found for hook \"before_plugin_add\".\r\nNo version specified for onesignal-cordova-plugin, retrieving version from config.xml\r\nNo version for onesignal-cordova-plugin saved in config.xml or package.json\r\nAttempting to use npm info for onesignal-cordova-plugin to choose a compatible release\r\nnpm info for onesignal-cordova-plugin did not contain any engine info. Fetching latest release\r\nCalling plugman.fetch on plugin \"onesignal-cordova-plugin\"\r\nsaving\r\nRunning command: npm install onesignal-cordova-plugin --production --save\r\nCommand finished with error code 0: npm install,onesignal-cordova-plugin,--production,--save\r\nCopying plugin \"repo/node_modules/onesignal-cordova-plugin\" => \"repo/plugins/onesignal-cordova-plugin\"\r\nCalling plugman.install on plugin \"repo/plugins/onesignal-cordova-plugin\" for platform \"android\r\nInstalling \"onesignal-cordova-plugin\" for android\r\nRunning command: repo/platforms/android/cordova/version \r\nCommand finished with error code 0: repo/platforms/android/cordova/version \r\nFinding scripts for \"before_plugin_install\" hook from plugin onesignal-cordova-plugin on android platform only.\r\nNo scripts found for hook \"before_plugin_install\".\r\nInstall start for \"onesignal-cordova-plugin\" on android.\r\nPlatformApi successfully found for platform android\r\nBeginning processing of action stack for android project...\r\nInstalling Android library: com.onesignal:OneSignal:3.6.3\r\nInstalling Android library: build-extras-onesignal.gradle\r\nAction stack processing complete.\r\nUpdating build files since android plugin contained <framework>\r\nSubproject Path: CordovaLib\r\nInstall complete for onesignal-cordova-plugin on android.\r\nFinding scripts for \"after_plugin_install\" hook from plugin onesignal-cordova-plugin on android platform only.\r\nNo scripts found for hook \"after_plugin_install\".\r\nCalling plugman.install on plugin \"repo/plugins/onesignal-cordova-plugin\" for platform \"ios\r\nInstalling \"onesignal-cordova-plugin\" for ios\r\nRunning command: repo/platforms/ios/cordova/version \r\nCommand finished with error code 0: repo/platforms/ios/cordova/version \r\nFinding scripts for \"before_plugin_install\" hook from plugin onesignal-cordova-plugin on ios platform only.\r\nNo scripts found for hook \"before_plugin_install\".\r\nInstall start for \"onesignal-cordova-plugin\" on ios.\r\nPlatformApi successfully found for platform ios\r\nBeginning processing of action stack for ios project...\r\nAdding non-custom framework to project... SystemConfiguration.framework -> {\"customFramework\":false,\"embed\":false,\"link\":true,\"weak\":false}\r\nNon-custom framework added to project. SystemConfiguration.framework -> {\"customFramework\":false,\"link\":true,\"weak\":false}\r\nAction stack processing complete.\r\nAdding pods since the plugin contained <framework>(s) with type=\"podspec\"\r\npods.json found in platforms/ios\r\nPodfile found in platforms/ios\r\nSet pods.json for `OneSignal`\r\nAdded pod line for `OneSignal`\r\nWrote to pods.json.\r\nWrote to Podfile.\r\nRunning `pod install` (to install plugins)\r\nFailed to install 'onesignal-cordova-plugin': undefined\r\nError: Version should contain only numbers and dots\r\n```"},"comment":{"url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/comments/340644731","html_url":"https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/263#issuecomment-340644731","issue_url":"https://api.github.com/repos/OneSignal/OneSignal-Cordova-SDK/issues/263","id":340644731,"user":{"login":"topalavlad","id":2983957,"avatar_url":"https://avatars3.githubusercontent.com/u/2983957?v=4","gravatar_id":"","url":"https://api.github.com/users/topalavlad","html_url":"https://github.com/topalavlad","followers_url":"https://api.github.com/users/topalavlad/followers","following_url":"https://api.github.com/users/topalavlad/following{/other_user}","gists_url":"https://api.github.com/users/topalavlad/gists{/gist_id}","starred_url":"https://api.github.com/users/topalavlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topalavlad/subscriptions","organizations_url":"https://api.github.com/users/topalavlad/orgs","repos_url":"https://api.github.com/users/topalavlad/repos","events_url":"https://api.github.com/users/topalavlad/events{/privacy}","received_events_url":"https://api.github.com/users/topalavlad/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T02:51:39Z","updated_at":"2017-10-31T02:51:39Z","author_association":"NONE","body":"Updating ionic and dependencies in the package.json file and [this](https://github.com/CocoaPods/CocoaPods/issues/1110#issuecomment-170323860) post helped me reset the project. It builds successfully now, hopefully the notifications will also work."}}
{"actor":{"display_login":"topalavlad"}}