Fliss Hou Fliss Hou - 1 month ago 19
Node.js Question

Implement Node Addon in Xcode

Can I run

node-gyp
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

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.

Comments