FYI I'm guessing that the cordova-mobile-spec\dependencies-plugin\plugin.xml file is what is causing the problems with the xcode project since it still lists org.apache.test.echo as a dependency.
I guess my point in the first post was to point out the difficulties in following the WorkingWithThree instructions in hopes of helping other folks who might want to contribute. I DID run npm install moduleName from the directory that had the dependency to get a local copy. My question was really whether or not we intended for the modules to be installed locally rather than globally. Looking at .gitignore I guess the intention is for local install since node_modules is listed. On Thu, Aug 15, 2013 at 11:24 AM, Andrew Grieve <[email protected]>wrote: > https://npmjs.org/doc/faq.html is a good resource for understanding node's > local vs global dependencies. > > Agree coho's README needs updating. It's completely out of date! > > > On Thu, Aug 15, 2013 at 11:20 AM, Andrew Grieve <[email protected] > >wrote: > > > yeah, sounds like mainly it's that you missed typing "npm install" within > > cordova-js and within cordova-coho (and within cordova-cli if you want to > > use a local version of that). > > > > For iOS (and android), the WorkingWithThree steps exist in a script > > within cordova-mobile-spec (createmobilespec.sh). > > > > For coho - use "coho --help" for documentation. > > > > > > On Thu, Aug 15, 2013 at 9:33 AM, Braden Shepherdson <[email protected] > >wrote: > > > >> It sounds like you're installed npm packages with dependencies (coho, > >> cordova-js) and not running "npm install". That command will install all > >> their dependencies locally. > >> > >> In particular that's what's wrong with grunt-cli vs. grunt: the intended > >> flow is that you install grunt-cli globally, and that gives you a grunt > >> command. That command is a thin wrapper the looks up your directory > >> structure until it finds a node_modules/grunt, and then runs that > locally > >> installed grunt version. > >> > >> Braden > >> > >> > >> On Wed, Aug 14, 2013 at 6:50 PM, James Jong <[email protected]> > wrote: > >> > >> > Becky, I would update your cordova-ios project. There was a recent > >> change > >> > to remove it (CB-4281). > >> > -James Jong > >> > > >> > On Aug 14, 2013, at 5:33 PM, Becky Gibson <[email protected]> > >> wrote: > >> > > >> > > OK, I think the linker problem is because CDVEcho.m is included > >> twice. I > >> > > see it in plugins dir under org.apache.cordova.test.echo/src/ios/ > and > >> in > >> > > platforms/ios/cordovalib/classes/. I'm guessing this has something > >> to do > >> > > with the dependencies for mobilespec? > >> > > > >> > > thanks, > >> > > -becky > >> > > > >> > > > >> > > On Wed, Aug 14, 2013 at 5:05 PM, Becky Gibson < > [email protected] > >> > >wrote: > >> > > > >> > >> I found a few bugs in iOS media capture and media that I would like > >> to > >> > >> fix. I need to get set up for 3.0 so I followed the instructions > >> here: > >> > >> http://wiki.apache.org/cordova/WorkingWithThree. Since I didn't > >> have > >> > any > >> > >> 3.0 clones I started by cloning. > >> > >> > >> > >> Here are a few issues that I ran into that did not seem to be > >> > documented: > >> > >> > >> > >> - In order for the coho clone command to work I needed to install > >> > >> optimist, shelljs and request. I tried to install optimist > >> globally > >> > but > >> > >> that didn't work so I ended up installing all of these locally > in > >> my > >> > >> cordova-coho directory to get things working. > >> > >> - I had to blindly cut and paste the coho clone from the > >> > >> WorkingWithThree wiki page since I couldn't find any > documentation > >> > for the > >> > >> clone command. > >> > >> - I edited .cordova/config.json as indicated in the instructions > >> but > >> > >> then running the cordova platform add command kept giving me a > >> syntax > >> > >> error: unexpected string. I went back to the default config.json > >> and > >> > the > >> > >> platform add command worked correctly. > >> > >> - Since I was starting from scratch I had to also clone > cordova-js > >> > >> - I followed the instructions for the cordova-js readme and > >> installed > >> > >> grunt via: sudo npm install -g grunt-cli When I tried to run > >> grunt > >> > >> to build cordova-js I got the message that it should be installed > >> > locally: Fatal > >> > >> error: Unable to find local grunt. Based on the original > >> instructions > >> > >> I installed grunt-cli locally - that didn't work so I installed > >> grunt > >> > >> locally. > >> > >> - I could build the platform js files but got the following > error: > >> > >> > >> > >> Running "_test" task > >> > >> > >> > >> starting node-based tests > >> > >> > >> > >> Warning: can't run tests in node: run grunt btest instead, or > install > >> > >> jsdom via: npm install Use --force to continue. > >> > >> > >> > >> > >> > >> Since I didn't care about the tests (at this point I didn't worry > >> about > >> > >> the error - however I'm still not sure what I should be > installing). > >> > >> > >> > >> I opened the created mobilespec project in xcode but the build > failed > >> > when > >> > >> linking. I did make the mistake of opening it in xcode 5 (beta 5) > >> > before > >> > >> trying it in 4.6 so my project settings may have been messed up by > >> > xcode > >> > >> 5. I'll tackle that tomorrow but I wanted to get the installation > >> > >> information documented before I forgot. > >> > >> > >> > >> -becky > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > >> > > >> > > > > >
