Skip to content
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

Cannot build net6.0-ios project on Mac OS X #7982

Open
mgkcorty opened this issue Jan 27, 2023 · 9 comments
Open

Cannot build net6.0-ios project on Mac OS X #7982

mgkcorty opened this issue Jan 27, 2023 · 9 comments
Labels
Linux MacOS Setup Related to setuping a MonoGame project for the first time

Comments

@mgkcorty
Copy link

mgkcorty commented Jan 27, 2023

Device: Macbook M1
OS: Mac OS X Ventura 13.1
Project: net6.0-ios

After i add image texture to Content.mgcb file we receive build error

/Users/user/.nuget/packages/monogame.content.builder.task/3.8.1.303/build/MonoGame.Content.Builder.Task.targets(5,5): Error MSB3073: The command "dotnet mgcb /quiet /@:"/Users/user/Documents/Projects/game/src/testgame/Content/Content.mgcb" /platform:iOS /outputDir:"/Users/user/Documents/Projects/game/src/testgame/Content/bin/iOS/Content" /intermediateDir:"/Users/user/Documents/Projects/game/src/testgame/Content/obj/iOS/net6.0-ios/Content" /workingDir:"/Users/user/Documents/Projects/game/src/testgame/Content/"" exited with code 1. (MSB3073) (testgame)

dotnet mgcb utility not ready to work with .net6.0-iOS projects?

@mgkcorty mgkcorty changed the title Cannot build project on Mac OS X Cannot build net6.0-ios project on Mac OS X Jan 27, 2023
@miles-till
Copy link

I'm seeing the same issue building projects for desktop and iOS on my M2 Air. I suspect the issue lies with the MonoGame extension (and therefore MGCB) not working with the latest Visual Studio for Mac.
Visual Studio for Mac 17.4.3
MonoGame extension 3.8.1.303

image

@topnik-code
Copy link

I get the same error when trying to build a net 6.0 DesktopGL project on an M1 mac. Does anybody know a workaround, or is there hope for a fix?

@AristurtleDev
Copy link
Contributor

Visual Studio for Mac is being retired next year. MonoGame has already removed the VS for Mac templates from the develop branch.

Would suggest if using a mac to either switch to VSCode or Rider is possible.

Reference:

@topnik-code
Copy link

Oh, I forgot to mention: I got this error when just running "dotnet build" from the command line, so it does not seem to (only) be a problem with Visual Studio.

@topnik-code
Copy link

I stand corrected, the error resulted from an error with a relative path in my mgcb file! So it was unrelated to this issue. I am sorry for the confusion! 🙏

@mrhelmut
Copy link
Contributor

Do you mind retrying with the latest develop packages and net8? (and with rosetta enabled)

@harry-cpp
Copy link
Member

You need to manually install x64 dotnet 6 sdk for content compilation on M1 macs.

@mrhelmut
Copy link
Contributor

I've added that note to the getting started documentation: MonoGame/monogame.github.io#67

macOS checklist:

  • install the x64 .NET SDK
  • install and/or enable Rosetta if running on M1+
  • if targeting mobile, make sure that the corresponding workload is installed (e.g. dotnet workload install ios)

@mrhelmut mrhelmut added Linux MacOS Setup Related to setuping a MonoGame project for the first time labels Jan 19, 2024
@mrhelmut
Copy link
Contributor

Please refer to #8124 while this issue is being worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux MacOS Setup Related to setuping a MonoGame project for the first time
Projects
None yet
Development

No branches or pull requests

6 participants