MAUI dotnet build iOS app how to set xxx.xcarchive output folder when -p:ArchiveOnBuild=true

Changan Xiang 30 Reputation points Microsoft Employee
2025-02-10T01:52:01.01+00:00

When I build MAUI project on iOS platform with -p:ArchiveOnBuild=true, which will generated a xxx.xcarchive under ~/Library/Develop/Xcode/Archive/ folder, how to define a specific folder for this xcarchive file when build with dotnet build command.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,114 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,416 Reputation points Microsoft External Staff
    2025-02-10T04:13:32.11+00:00

    Hello,

    On Windows machine, you could set ArchiveBasePath which means the location where archives are stored on Windows for a remote build. The default is: %LocalAppData%\Xamarin\iOS\Archives.

    See Project file properties · xamarin/xamarin-macios Wiki

    xxx.xcarchive under ~/Library/Develop/Xcode/Archive/ folder

    This is the archive path on Mac. If you want to change this path, you could set it on Xcode: Window -> Organizer -> Archives

    User's image

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.