Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build in Xcode got Error on MacOS #20324

Closed
dengwanc opened this issue Apr 26, 2018 · 4 comments
Closed

Build in Xcode got Error on MacOS #20324

dengwanc opened this issue Apr 26, 2018 · 4 comments
Labels
build Issues and PRs related to build files or the CI.

Comments

@dengwanc
Copy link

dengwanc commented Apr 26, 2018

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

@bnoordhuis bnoordhuis added the build Issues and PRs related to build files or the CI. label Apr 26, 2018
@bnoordhuis
Copy link
Member

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.

bnoordhuis added a commit to bnoordhuis/io.js that referenced this issue Apr 26, 2018
`./configure --xcode` ostensibly let you built with the Xcode IDE but
it has never been tested regularly since its introduction in 2012 and
probably has been broken for years.  Remove it.

Fixes: nodejs#20324
@dengwanc
Copy link
Author

Fine...
But how do you debug source code

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

Thank You.

@bnoordhuis
Copy link
Member

I use lldb+llnode.

MylesBorins pushed a commit that referenced this issue May 4, 2018
`./configure --xcode` ostensibly let you built with the Xcode IDE but
it has never been tested regularly since its introduction in 2012 and
probably has been broken for years.  Remove it.

PR-URL: #20328
Fixes: #20324
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
@thlorenz
Copy link
Contributor

thlorenz commented Oct 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants