Forum Xamarin.iOS

There is no option to set ARC flag in xamarin ios build configurations.

For one of my applications apple has raised warning as Automatic Reference Counting is not enabled. In the previous version of visual studio there was one checkbox for enabling ARC but now we don't have any checkbox. I tried to set flag as -gcc_flags "-fobjc-arc", but i don't think it is the proper solution. Please help me to resolve this issue.


  • LandLuLandLu Member, Xamarin Team Xamurai

    I saw someone said it worked after adding this argument:
    And if you are developing with the latest Xamarin iOS library you project must have used the New Reference Counting System. Is this a legacy project or created by this new Xamarin iOS version?
    Have you referenced some third party libraries which haven't supported ARC?

  • moeejtambolimoeejtamboli USMember

    I am using Xamarin.iOS v13.10.0.17. It is not legacy project and I am not using any third party library still apple has given a warning.

  • ElvisXiaElvisXia Member, Forum Administrator, Xamarin Team Xamurai

    @moeejtamboli Can you share a basic sample app that can reproduce this issue?

  • FXamainFXamain Member ✭✭

    I am using Xamarin.iOS, We could find in our application that we are having performance issue on working in the same screen for some time and the memory usage is increased, looks like the memory is not cleared rightly so. and i could not find the option for enabling New Reference Counting System in my .csproj. what should i do in this case

Sign In or Register to comment.