Closed oscarbg closed 6 years ago
Hi, maybe it's because I'm using Xcode 10 beta? expected to work on Xcode 9 latest build? thanks..
@oscarbg we currently require the command line tools from XCode 9, while we do actual debugging in XCode 10 (like GPU capturing). You can change the default toolset by going to XCode (menu) -> Preferences -> Locations (tab) -> Command Line Tools.
As for this issue, we can either close it, or rename to - make portability
compatible with XCode 10 command line tools, which would be useful for sure, but nobody has looked at what needs to be done there yet.
@kvark thanks.. just renamed issue title, as Xcode 10 will become out of beta this month and more people might find same issue..
@kvark I think the problem with Xcode 10 tools: metallib: Invalid bitcode file! is due to now "metal" command needing now an added "-c" argument see here how they fixed also the same error I was having also with Xcode 10: https://github.com/ConfettiFX/The-Forge/issues/64 EDIT: also installed Xcode 9.4.1 command line tools and pointed to it with Xcode-select: /Library/Developer/CommandLineTools but then the problem is metal command isn't found there so can't be solved with Xcode 9 command tools you need full Xcode 9..
so the fix seems in gfx/src/backend/metal/build.rs
let status = Command::new("xcrun")
.args(&["-sdk", sdk_name, "metal"])
.arg(shader_path.as_os_str())
for:
let status = Command::new("xcrun")
.args(&["-sdk", sdk_name, "metal"])
.arg("-c")
.arg(shader_path.as_os_str())
EDIT: confirmed this is enough to build the library!
Fixed by https://github.com/gfx-rs/gfx/pull/2379 will close once we update to this gfx-rs version
Hi finally tried to build by myself and I get an error..
any clue?