Fliss Hou Fliss Hou - 1 year ago 177
Node.js Question

Implement Node Addon in Xcode

Can I run

on Xcode?

Add JavaScript files, C++ files, third-party static libraries, and binding.gyp file in a same project, and run it with Node.js?

Or the only way I can do is write separate files, put them in a same directory, run .js file on terminal?

Answer Source

Yes, we could implement node-gyp on Xcode.

Instead of commanding $ node-gyp configure build(or using $ node-gyp rebuild), what steps we should do are:

 $ node-gyp configure -- -f xcode
 $ node-gyp build

And we could also adjust some settings on Xcode itself, rather than editing binding.gyp alone.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download