Node: Build in Xcode got Error on MacOS

Created on 26 Apr 2018  路  4Comments  路  Source: nodejs/node

git commit 1b438a773764d72bbe4aea0e99359db97193e57d (master)
MacOS
Xcode

  1. ./configure --xcode
  2. open node.xcodeproj with Xcode 9
  3. click build button

got this

Check dependencies

warning: skipping file '/Users/dengwanc/Projects/node/deps/openssl' (unexpected file type 'text' in Frameworks & Libraries build phase)

image

build

Most helpful comment

I use lldb+llnode.

All 4 comments

Building with Xcode (apart from the command line tools) isn't supported. I'm reasonably sure it hasn't worked or worked reliably for years. We should just get rid of the switch. I'll open a pull request.

Fine...
But how do you debug source code

Some Tips Give for me ?
If use cmd line, would you provide a Example ?

Thank You.

I use lldb+llnode.

As a note you can still build + run Node.js with Xcode version 9.x (Xcode version 10 got more strict regarding circular dependencies, so you may have to downgrade first).

You can generate the node.xcodeproj via:

./configure -- -f xcode

Then you have to do two things:

  1. remove -framework CoreFoundation from Frameworks
  2. remove the . entry from the _openssl -> Build Phases -> Link Library with Libraries_ so it looks like in the screenshot below

screen shot 2018-10-10 at 3 05 06 pm

Was this page helpful?
0 / 5 - 0 ratings