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

Can't generate Xcode project #60033

Closed
danielfalbo opened this issue Jul 13, 2022 · 2 comments
Closed

Can't generate Xcode project #60033

danielfalbo opened this issue Jul 13, 2022 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@danielfalbo
Copy link

danielfalbo commented Jul 13, 2022

Describe the bug

After building the toolchain using Ninja, I'm trying to create Xcode projects for LLVM and Swift with as according to the Using ninja with Xcode guide, but the command is failing.

I'm getting a couple of errors all similar to

CMake Error in SwiftCompilerSources/CMakeLists.txt:
  The custom command generating

    /Users/danielfalbo/Developer/swift-project/build/Xcode-DebugAssert/swift-macosx-arm64/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/lib/swift/macosx/x86_64/libcxxshim.modulemap

  is attached to multiple targets:

    lib-swift-macosx-x86_64-libcxxshim.modulemap
    lib-swift-macosx-arm64-libcxxshim.modulemap

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".

Steps To Reproduce

Just run

utils/build-script --skip-build --xcode --skip-early-swift-driver

Expected behavior

Build succeeding.

Environment (please fill out the following information)

  • OS: macOS 12.4 on M1 MacBook Air
  • Xcode Version/Tag/Branch: Xcode 13.4.1 (13F100)

Additional context

Full output: xcodeOutput.txt

Hashes: hashes.txt

@danielfalbo danielfalbo added the bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. label Jul 13, 2022
@danielfalbo danielfalbo changed the title [Xcode Build] CMake Error: The custom command generating [...] is attached to multiple targets but none of these is a common dependency of the other(s) Can't generate Xcode project Jul 14, 2022
@danielfalbo
Copy link
Author

@danielfalbo
Copy link
Author

Finally managed to successfully generate the Xcode project (see forum post), closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant