iOS中.m 生成.cpp文件

终端cd文件目录输入

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

你可能感兴趣的:(iOS中.m 生成.cpp文件)