Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. var xcode = require ('xcode'),
  2. fs = require('fs'),
  3. projectpath='HelloWorld.xcodeproj/projec.pbxproj',
  4. myProj = xcode.project(projectPath);
  5.  
  6. myproj.parse(function(err){
  7. myProj.addResourceFile('manisha-rules-camdo.plist');
  8. fs.writeFileSync(projectPath, myProj.writeSync());
  9. console.log('new project written');
  10. });
  11.  
  12. module.js:340
  13. throw err;
  14. ^
  15. Error: Cannot find module 'xcode'
  16. at Function.Module._resolveFilename (module.js:338:15)
  17. at Function.Module._load (module.js:280:25)
  18. at Module.require (module.js:364:17)
  19. at require (module.js:380:17)
  20. at Object.<anonymous> (/Users/NileshAgrawal/Desktop/sample-cordova/hello/platforms/ios/sample1.js:1:81)
  21. at Module._compile (module.js:456:26)
  22. at Object.Module._extensions..js (module.js:474:10)
  23. at Module.load (module.js:356:32)
  24. at Function.Module._load (module.js:312:12)
  25. at Function.Module.runMain (module.js:497:10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement