microsoft/dotnet-podcasts

Error when running Mac build

afucher opened this issue · 8 comments

Just installed MAUI following the instructions for MacOS, cloned the repo, executed the docker command and tried to run locally the mac app.

Error when running dotnet build src/Mobile/Microsoft.NetConf2021.Maui.csproj -t:run -f net6.0-maccatalyst

Microsoft(R) Build Engine versão 17.1.0+ae57d105c para .NET
Copyright (C) Microsoft Corporation. Todos os direitos reservados.

  Determinando os projetos a serem restaurados...
  Todos os projetos estão atualizados para restauração.
  Podcast.Components -> /Users/afucher/Projects/dotnet-podcasts/src/Web/Components/bin/Debug/net6.0/Podcast.Components.dll
  Detected signing identity:

    Bundle Id: com.Microsoft.NetConf2021.Maui
    App Id: com.Microsoft.NetConf2021.Maui
Properties/launchSettings.json : error : The path '../../../../../../../../../Users/afucher/Projects/dotnet-podcasts/src/Mobile/Properties/launchSettings.json' would result in a file outside of the app bundle and cannot be used. [/Users/afucher/Projects/dotnet-podcasts/src/Mobile/Microsoft.NetConf2021.Maui.csproj]
Properties/launchSettings.json : error :          [/Users/afucher/Projects/dotnet-podcasts/src/Mobile/Microsoft.NetConf2021.Maui.csproj]

FALHA da compilação.

Properties/launchSettings.json : error : The path '../../../../../../../../../Users/afucher/Projects/dotnet-podcasts/src/Mobile/Properties/launchSettings.json' would result in a file outside of the app bundle and cannot be used. [/Users/afucher/Projects/dotnet-podcasts/src/Mobile/Microsoft.NetConf2021.Maui.csproj]
Properties/launchSettings.json : error :          [/Users/afucher/Projects/dotnet-podcasts/src/Mobile/Microsoft.NetConf2021.Maui.csproj]
    0 Aviso(s)
    1 Erro(s)

Hmmm can you do a dotnet --info for me. Do you have the latest 6.0.300 sdk and latest RC bits? i was able to run above fine here

Maybe also navigate to the "Mobile" folder and run:

dotnet build Microsoft.NetConf2021.Maui.csproj -t:run -f net6.0-maccatalyst
> dotnet --info
SDK do .NET (refletindo qualquer global.json):
 Version:   6.0.202
 Commit:    f8a55617d2

Ambiente de runtime:
 OS Name:     Mac OS X
 OS Version:  12.3
 OS Platform: Darwin
 RID:         osx.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.202/

Host (useful for support):
  Version: 6.0.4
  Commit:  be98e88c76

.NET SDKs installed:
  2.2.207 [/usr/local/share/dotnet/sdk]
  2.2.401 [/usr/local/share/dotnet/sdk]
  3.0.100 [/usr/local/share/dotnet/sdk]
  3.1.101 [/usr/local/share/dotnet/sdk]
  3.1.200 [/usr/local/share/dotnet/sdk]
  3.1.300 [/usr/local/share/dotnet/sdk]
  3.1.301 [/usr/local/share/dotnet/sdk]
  3.1.402 [/usr/local/share/dotnet/sdk]
  3.1.417 [/usr/local/share/dotnet/sdk]
  5.0.100 [/usr/local/share/dotnet/sdk]
  6.0.100 [/usr/local/share/dotnet/sdk]
  6.0.201 [/usr/local/share/dotnet/sdk]
  6.0.202 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

same error inside "Mobile" folder

You will need to install 6.0.300: https://github.com/dotnet/installer#table and then do a dotnet workload install maui to get RC bits

Thanks @jamesmontemagno , I will install ...
But just for curiosity, what is the difference between this link and this (https://dotnet.microsoft.com/en-us/download/dotnet/6.0) ? I downloaded the latest stable from there

6.0.300 is a preview build from my understanding. https://github.com/dotnet/maui/blob/main/.github/DEVELOPMENT.md is a good guide with links that are up to date.

Thanks @jamesmontemagno , with 6.0.3worked.
There are some errors running the application itself, but I'll take a look.

Thanks again

WE are still doing work on iOS/Mac so work in progress there.