question

MichelangeloLattanzio-3564 avatar image
0 Votes"
MichelangeloLattanzio-3564 asked YonglunLiu-MSFT commented

Xamarin keeps creating SwiftSupport folder

I am building a release version of a Xamarin app which has no Swift dependencies.

When I try to archive the project for publishing I keep finding the "SwiftSupport" folder with an empty "iphoneos" sub-folder.

Normally I expect the "SwiftSupport" folder to not be created if the project doesn't include any dylib, and that's the case if I create a new blank Xamarin project.

So my question is. How can I disable the creation of the "SwiftSupport" folder?

I looked pretty much everywhere but the only "answer" that I get is simply "delete that folder" and that doesn't fit the requirements of my question:

What causes the creation of the SwiftSupport folder?
How to prevent the creation of the SwiftSupport folder in a Xamarin use case where there are no swift libraries involved (Like the default Xamarin project)

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YonglunLiu-MSFT avatar image
0 Votes"
YonglunLiu-MSFT answered YonglunLiu-MSFT commented

Hello,

You can try the following steps to prevent Visual Studio from creating the folder.

Step1. Make sure there are no file in your SwiftSupport folder.

Step2. Open the project file of your Solution (*.csproj) with a text editor, search and remove:

<AppDesignerFolder>SwiftSupport</AppDesignerFolder>

<ItemGroup>
<Folder Include="SwiftSupport\" />
</ItemGroup>

Step3, Save the project file and reopen the Solution in VS. The folder would be prevent from creating in VS.

Best Regards,

Alec Liu.



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.


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

As I said the SwiftSupport folder contains only an empty iphoneos sub-folder.

I tried to follow the steps but there are no reference for the string "SwiftSupport" in any file/folder or (*.csproj)s or Nuget dependencies that I own the source code of.

0 Votes 0 ·
YonglunLiu-MSFT avatar image YonglunLiu-MSFT MichelangeloLattanzio-3564 ·

If there is no <AppDesignerFolder>SwiftSupport</AppDesignerFolder> in yourSolution.csproj file, it would be caused by the Xamarin configuration.

You can refer to this documentation Report a problem with the Visual Studio product or installer and report the problem to our tech team.

0 Votes 0 ·

If you mean a (*.json) settings file, the solution actually doesn't have one.

0 Votes 0 ·
Show more comments