反编译OC文件时,直接使用
clang -rewrite-objc xxx.m 会出现这样的错误,所以需要使用下面命令:
clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk xxx.m