clang 问题

2018-08-30  本文已影响34人  Pei丶Code

当我们想要查看 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

上一篇下一篇

猜你喜欢

热点阅读