I came across this error while adding a new macro to an existing AOT macro. Even after compilation and forward compilation of the class which was using the macro, the error was still existing.

It was resolved after AOS resart.