Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

xcbuild fails with "error: cycle detected building invocation graph" where xcode runs fine #279

Open
mstorsjo opened this issue Feb 3, 2018 · 0 comments

Comments

@mstorsjo
Copy link
Contributor

mstorsjo commented Feb 3, 2018

To reproduce, build the attached example project, or do the following changes to an existing xcodeproj (tested with a macos cocoa project):

  • Add a Run Script build phase, add one entry to Input Files: $(TARGET_BUILD_DIR)/$(WRAPPER_NAME), place the build phase last (after Copy Bundle Resources)
  • Add a Copy Files build phase at the end, after the Run Script phase

If building this with Xcode's xcodebuild, it builds fine. With xcbuild instead (just invoke xcbuild in the directory), the build ends with this message:

error: cycle detected building invocation graph
** BUILD FAILED **

If building with -executor ninja, the build hangs, but if interrupted and restarted, it completes correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant