Visual studio 2022 Maui project unable to compile for .net 9.0-ios target

Ryan Lee 30 Reputation points
2025-02-02T07:27:26.12+00:00

Hi,

I am trying to deploy a test app to iPhone from windows visual studio but getting the following error when trying to compile.

The specified network password is not correct.

I have completed the automatic provisioning :

User's image

I obviously have no problem compiling for android emulator.

I have tried removing the folder AppData\Local\Xamarin, removing bin and ojb folders, relaunching the app, and going through adding apple account again, confirmed there is at least one valid certificate in the list of chains.

Can someone please advise if there is anything else I can try to do?

Thanks

Ryan.

Developer technologies | .NET | .NET MAUI
{count} vote

2 answers

Sort by: Most helpful
  1. Andrew Taylor-Brook 0 Reputation points
    2025-02-07T11:31:21.79+00:00

    OK, i can now reproduce the issue and also work around it

    Steps for me to reproduce the issue :

    1. Open VS
    2. Connect iPhone (so it shows an available local device)
    3. Build project
    4. Debug to iPhone (Succeeds)
    5. Stop debugging
    6. Modify .csproj file in any way (e.g. just add some whitespace in) and save
    7. Debug to iPhone (don't explicitly build)
    8. Error about password appears.
    9. Build the project
    10. Debug to iPhone (Succeeds)

    So the main issue seems to be if the csproj file changes in some way but you don't build the project, the error appears until you do another build.


  2. Muralidhara M 0 Reputation points
    2025-07-22T13:07:30.2133333+00:00

    After upgrading from .NET 8 to .NET 9, I'm encountering the following error when trying to build my iOS project:

    "C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk.net9.0_18.5\18.5.9207\tools\msbuild\iOS\Xamarin.Messaging.Build.targets(114,3): error : MSBuild was unable to connect to the Mac with Address='00.00.00.00' and User='user'. This connection is separate from Visual Studio and without it the project can't build. Please try building again or report this problem if the issue persists."

    This occurs even though I am successfully connected to a Mac build machine. I've verified the connection, but the error persists during the build process. Please advise on how to resolve this issue or if there are any known workarounds

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.