当我们想要查看 OC的源码实现时,将其转化为C++;
如果出现这个问题fatal error: 'UIKit/UIKit.h' file not found
可以将命令改为以下代码:
clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk ViewController.m
网友评论