I just got some work for the old project. There is compile-time error with IMP instance:
While searching for the cause and solution I came across the links:
https://developer.apple.com/forums/thread/666701
But those didn't helped me understand the solution. What should be done to get rid of the error?

The solution given at https://developer.apple.com/forums/thread/666988 worked for me. There is some warning, but at least build is successful.