Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build NodeJS in XCode IDE?

How can I build NodeJS within the XCode IDE as a project? NodeJS build instructions say that it should be built with:

./configure
make
make install

However I wish to build within the XCode IDE.

What I really want to do is embed NodeJS within my application, so I think if I can build NodeJS within XCode then I can just adjust it to add my application once I have NodeJS building and running.

I made some progress I think by getting V8 to compile in XCode, now I am trying to add NodeJS to the V8 project.

like image 546
Phil Avatar asked Jul 15 '13 13:07

Phil


People also ask

Can you use Xcode for NodeJS?

Xcode is an integrated development environment (IDE) that is comprised of software development tools for macOS. You won't need Xcode to write Node. js programs, but Node. js and some of its components will rely on Xcode's Command Line Tools package.

How do I create a node JS project in Mac?

To write and run a NodeJS program on mac, first download and install the LTS version of NodeJS from its official website. After installation, create a new JavaScript(. js) file, write some code inside it, and run the “node fileName. js” command in the terminal.


2 Answers

Run ./configure --xcode in node repository root and you will get node.xcodeproj file you want.

like image 114
Pylipala Avatar answered Sep 20 '22 01:09

Pylipala


As of this commit in Node.js - https://github.com/nodejs/node/pull/20328 one must do -

./configure -- -f xcode
like image 30
Gautham Avatar answered Sep 21 '22 01:09

Gautham