facebookarchive / xcbuild

Xcode-compatible build tool.
Other
2k stars 190 forks source link

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

Open mstorsjo opened 6 years ago

mstorsjo commented 6 years ago

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

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.