OC代码转C++文件:
cd到main.m的文件中,执行:
clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk main.m
https://blog.youkuaiyun.com/xiong452980729/article/details/70140050
博客介绍了将OC代码转换为C++文件的方法,需cd到main.m文件所在目录,执行特定命令:clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk main.m ,还给出了相关参考链接。
482

被折叠的 条评论
为什么被折叠?



