After upgrading to XCode 8, some third party library stopped compiling.
NSArray *validTypes = @[
`class` is unavailable, use `self` instead
For those who occurred the same problem, I recommend the following method with replacing
self across whole project.
First, click on
search tab and choose
find and replace with regex
Enter the values you see on the screenshot and click preview to double check yourself. You should see something similar: