Resources rules file 'Platforms/iOS/Entitlements.plist' not found.

martin schneeberger 20 Reputation points
2025-05-13T06:44:59.55+00:00

Hello

I am using visual studio 2022 for windows and trying to build a IOS archive file in on my windows box which should then be transferred to my connected MAC so that I can then publish the app-

I keep getting this error Resources rules file 'Platforms/iOS/Entitlements.plist' not found.

There is an Entitlements.plist file in the solutionns Explorer in Visual 2022 for Windowa

I have tried adding this line to the csproj project file on the windows box

<PropertyGroup>

<CodesignEntitlements>Platforms/iOS/Entitlements.plist</CodesignEntitlements>

</PropertyGroup>

and I have also tried

<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>

thinking it is windows environment.

If some could suggest a Solution that would be great

Martin.

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Accepted answer
  1. Michael Le (WICLOUD CORPORATION) 995 Reputation points Microsoft External Staff
    2025-07-18T10:34:52.3733333+00:00

    Hello,

    "Resources rules file 'Platforms/iOS/Entitlements.plist' not found"

    This error occurs when your iOS build process can't locate the Entitlements.plist file during compilation or archiving.

    I recommend following these steps to resolve the issue:

    1. Check Your File Location

    First, make sure your Entitlements.plist file is in the right place:

    YourProjectFolder/Platforms/iOS/Entitlements.plist
    

    If it's somewhere else, you'll need to move it to this location.

    2. Configure the Build Action

    In Visual Studio 2022:

    • Find Entitlements.plist in your Solution Explorer
    • Right-click and select Properties
    • Change the Build Action to BundleResource

    This tells the build system to include the file in your app bundle.

    3. Update Your Project File

    Open your .csproj file and add this configuration:

    <PropertyGroup>
    	<CodesignEntitlements>Platforms/iOS/Entitlements.plist</CodesignEntitlements>
    </PropertyGroup>
    

    Note: Use forward slashes (/) in the path - MSBuild handles these correctly on all platforms.

    4. Refresh Your Build

    Once you've made these changes:

    • Clean your solution (delete bin and obj folders)
    • Rebuild the project
    • Try archiving again

    5. Verify Mac Connection (If Using Remote Build)

    If you're building remotely on a Mac:

    • Check that the file synced properly to your Mac build host
    • Look at the build logs to confirm the file transfer

    I hope this helps you resolve the issue.

    For reference, you could also check the following resources:


1 additional answer

Sort by: Most helpful
  1. martin schneeberger 20 Reputation points
    2025-08-12T05:31:11.7866667+00:00

    Sorry to not get back to you you answer helped

    thank you


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.