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

[xcode10] 'Metal Game' fails to build #4576

Closed
mykyta-bondarenko-gl opened this Issue Aug 6, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@mykyta-bondarenko-gl

mykyta-bondarenko-gl commented Aug 6, 2018

Steps to Reproduce

  1. Open VSfM
  2. Create macOS Metal Game app
  3. Build it

OR

  1. Download a MetalKitEssentials sample
  2. Open and build it

Expected Behavior

Build is successful

Actual Behavior

Build is failed

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.Common.targets(3,3): Error MSB6003: The specified task executable "metal" could not be run. ApplicationName='metal', CommandLine=' -arch air64 -emit-llvm -c -gline-tables-only -ffast-math -std=osx-metal1.0 -serialize-diagnostics obj/x86/Debug/metal/Shaders.dia -o obj/x86/Debug/metal/Shaders.air Shaders.metal', CurrentDirectory='', Native error= Cannot find the specified file (MSB6003) (Test)

Environment

  1. VSfM 7.6 Preview (7.6 build 2135)
    https://gist.github.com/mykyta-bondarenko-gl/ef16ac39ec37d627700a39960f179d05

Build Logs

  1. VSfM output
    https://gist.github.com/mykyta-bondarenko-gl/0ac2f4b6f194b6f548ccad9cf0267d08
  2. msbuild output
    https://gist.github.com/mykyta-bondarenko-gl/0b7d79dbb3e6461c12edc34f2814d97f

Example Project

@mykyta-bondarenko-gl mykyta-bondarenko-gl changed the title from [xcode 10] 'Metal Game' fails to build to [xcode10] 'Metal Game' fails to build Aug 6, 2018

@mandel-macaque mandel-macaque modified the milestones: Future, xcode10 Aug 6, 2018

@mandel-macaque

This comment has been minimized.

Contributor

mandel-macaque commented Aug 6, 2018

Confirmed with the following version.

@VincentDondain VincentDondain self-assigned this Aug 8, 2018

@VincentDondain VincentDondain added bug and removed iOS labels Aug 8, 2018

@VincentDondain

This comment has been minimized.

Contributor

VincentDondain commented Aug 8, 2018

Argh Apple moved the metal binary around in Xcode 10. It's no longer at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal

@VincentDondain

This comment has been minimized.

Contributor

VincentDondain commented Aug 8, 2018

They are using /Applications/Xcode10-beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal

VincentDondain added a commit to VincentDondain/xamarin-macios that referenced this issue Aug 8, 2018

[msbuild] Update 'metal' binary path for Xcode 10
- Fixes xamarin#4576: [xcode10] 'Metal Game' fails to build. (xamarin#4576)

In Xcode 10 Apple moved the "metal" binary from `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal` to `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal`.

VincentDondain added a commit that referenced this issue Aug 17, 2018

[msbuild] Update 'metal' binary path for Xcode 10 (#4601)
- Fixes #4576: [xcode10] 'Metal Game' fails to build. (#4576)

In Xcode 10 Apple moved the "metal" binary from `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal` to `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal`.
@VincentDondain

This comment has been minimized.

Contributor

VincentDondain commented Aug 17, 2018

Fixed in #4601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment