How do determine which path format is invalid?

Brett Whittaker 5 Reputation points
2023-11-27T04:57:14.8866667+00:00

When I attempt to publish my Maui App and click "Publish" I get the cannot create an IOS archive because the process cannot be executed on XMA server - the "Unzip" task failed unexpectedly the given path's format is not supported.

That is all the feedback I get, nothing more. I have cleared the XMA cache on my Mac and my Desktop, nothing I can do to determine what the actual error is.

Where do I look?

Brett

Developer technologies .NET .NET MAUI
{count} votes

10 answers

Sort by: Most helpful
  1. Daniel 10 Reputation points
    2023-12-01T15:36:28.86+00:00

    I have the same problem but found a temporary workaround.

    Use the Publish using the command line from the MAUI docs.

    Open a Power Shell in your MAUI project directory (Shift + Right Click -> "Open Power Shel window here")

    Replace all the curly braces in this command with your own info and paste it to the Power Shell:

    dotnet publish {ProjectName}.csproj -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="{The code sign key}" -p:CodesignProvision={Provisioning Profile} -p:ServerAddress={iOS user ip address} -p:ServerUser="{iOS user name}" -p:ServerPassword={iOS user password} -p:TcpPort=58181 -p:'_DotNetRootRemoteDirectory=/Users/{iOS user folder name}/Library/Caches/Xamarin/XMA/SDKs/dotnet/'
    
    

    Now run this. The full process will still fail but you will have created a signed .ipa-file on your mac.

    Go to this folder to find it:

    /Users/{iOS user folder name}/Library/Caches/Xamarin/mtbs/builds/{MAUI project name}/{some long app identifier string}/bin/Release/net8.0-ios/ios-arm64/publish

    If you struggle with finding the Library folder. Use the "Go to folder..." in Finder.

    Now you can easily drag the .ipa-file to "Transporter" to transfer it to App Store👍

    2 people found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.