Skip to content

Build in Xcode got Error on MacOS #20324

Description

@dengwanc

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

Activity

  1. added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on Apr 26, 2018
  2. bnoordhuis commented on Apr 26, 2018

    @bnoordhuis
    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.

  3. dengwanc commented on Apr 26, 2018

    @dengwanc
    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.

  4. bnoordhuis commented on Apr 26, 2018

    @bnoordhuis
    Member

    I use lldb+llnode.

  5. thlorenz commented on Oct 10, 2018

    @thlorenz
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo