iOS clang編譯.m

weixin_34308389發表於2017-03-08

開啟終端

cd到ViewController.m目錄

clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk ViewController.m

生成ViewController.cpp

就可以愉快的看原始碼了

參考:http://www.jianshu.com/p/43a09727eb2c

相關文章