Failed to build with xcodebuild command
dokinkon opened this issue · 2 comments
dokinkon commented
Hi I got some problem when using xcodebuild + SPM
Step to reproduce:
- create a simple App project from Xcode
- add promises dependency by SPM
- open command line tool, type
xcodebuild -target TestPromise -sdk iphonesimulator
Error log:
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
unexpected service error: build aborted due to an internal error: unable to write manifest to '/Users/chao-chih/Library/Developer/Xcode/DerivedData/TestPromise-chzitmlovmvjsfhjzonnctocolks/SourcePackages/checkouts/promises/build/XCBuildData/f6d544bc94ade848d7e36d0c5727fe62-manifest.xcbuild': File exists but is not a directory: /Users/chao-chih/Library/Developer/Xcode/DerivedData/TestPromise-chzitmlovmvjsfhjzonnctocolks/SourcePackages/checkouts/promises/build
Looks like xcodebuild trying to write some files into build directory. However there is a BUILD file is promises package already. How can I resolve this issue?
Thanks.
shoumikhin commented
ykjchen commented
I was able to reproduce this. Resolved by renaming BUILD -> BUILD.bazel as suggested above.
I confirmed that building a project depending on Promises using Bazel still succeeds.
The fix should be available in 1.2.12. Please reopen if you're still running into this.