I have changed the name of my existing class in my iOS framework. But I want previous code to work properly after developers update the framework, just for one version.
Let say that I was having "ClassA" in the framework, and changed it to "ClassB"
I can do it by using @compatibility_alias directive like this:
@compatibility_alias ClassA ClassB;
However, in this case, developers won't be aware of the internal change. And I want them to really rename ClassA to ClassB in their code, because I want to remove @compatibility_alias directive in future versions.
Is there anyway to warn developer with __deprecated directive? I need some kind of warning mechanism because I want to remove @compatibility_alias directive in future versions.
I tried sth like this:
@compatibility_alias ClassA ClassB; __deprecated
But it did not show any warning on the line where I called ClassA.
Regards,