Alright support for ios-deploy should be in: https://issues.apache.org/jira/browse/CB-4336
It will only work if you have the proper cert and provisioning profile installed. If you don't the device build will just fail (but not fail cordova/build) -- the other scripts that pertain to device will just report that the device build is missing and stop. I figure detecting that the user has the appropriate cert and provisioning profile installed is outside the scope of the task, although in the mentioned jira issue I wrote some scripts that will help the user "debug" this situation. On Tue, Jul 23, 2013 at 4:33 PM, Anis KADRI <[email protected]> wrote: > I just read the issue and Fil is rightfully worried about Windows and other > OSes. There is a small workaround for that. Run a script on installation > that detects the Operating System you're running on and install the ios-sim > dependency only if it's Mac OS X. > > "scripts": { > "install": "node install_ios_sim.js" > } > > inside install_ios_sim.js would be something like: > > if(process.platform.match(/darwin/) > { > // install ios-sim dependency > } > > > On Tue, Jul 23, 2013 at 4:27 PM, Anis KADRI <[email protected]> wrote: > > > If it's packaged as an NPM module of course it is possible. It would be > > great to support uninstall though. > > > > > > On Tue, Jul 23, 2013 at 4:22 PM, Shazron <[email protected]> wrote: > > > >> I'm wondering about it being a dependency of the the cordova cli, is > this > >> possible? > >> https://issues.apache.org/jira/browse/CB-4333 > >> > >> > >> On Tue, Jul 23, 2013 at 4:04 PM, Anis KADRI <[email protected]> > wrote: > >> > >> > Great! I was thrown off by the error message myself last week. I had > >> > homebrew installed but I imagine that some devs don't have that > >> installed > >> > and it's two more steps to get an app to emulate. > >> > > >> > > >> > On Tue, Jul 23, 2013 at 1:39 PM, Brian LeRoux <[email protected]> wrote: > >> > > >> > > This is awesome: thanks Shaz! > >> > > > >> > > On Tue, Jul 23, 2013 at 4:26 PM, Shazron <[email protected]> wrote: > >> > > > The npm packages are pretty basic and install the tools in > >> > /usr/local/bin > >> > > > always, and there is no uninstall. > >> > > > > >> > > > > >> > > > On Tue, Jul 23, 2013 at 1:24 PM, Shazron <[email protected]> > wrote: > >> > > > > >> > > >> This is all moot when new Xcode bits are required when iOS 7 > comes > >> > out. > >> > > I > >> > > >> would post a Apple login protected link but their dev site is > still > >> > > down. > >> > > >> > >> > > >> Projecting my intent on ios-sim and ios-deploy use in Cordova > iOS. > >> > I've > >> > > >> filed some issues: > >> > > >> https://issues.apache.org/jira/browse/CB-4334 > >> > > >> https://issues.apache.org/jira/browse/CB-4336 > >> > > >> > >> > > >> Right now we are requiring ios-sim to do cordova emulate, by > >> telling > >> > > users > >> > > >> to install using homebrew. > >> > > >> > >> > > >> I've added both tools to npm: > >> > > >> http://npmjs.org/ios-sim > >> > > >> http://npmjs.org/ios-deploy > >> > > >> > >> > > >> So, instead of the homebrew install requirement it will just be > >> > nodejs - > >> > > >> which we are already requiring for the CLI tool. I would use > >> > ios-deploy > >> > > in > >> > > >> the same vein for deploying to the device, which the iOS platform > >> is > >> > > >> lacking in currently. > >> > > >> > >> > > >> Also, when the new bits are released I would detect the new bits, > >> and > >> > > use > >> > > >> them first if not fall back to the ios-sim/ios-deploy bits. > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > > >> > > >> > > > > >
