Skip to content

Instantly share code, notes, and snippets.

@qy1010
Created November 26, 2019 12:48
Show Gist options
  • Save qy1010/d6ceac28811d15156889d7e540c8b346 to your computer and use it in GitHub Desktop.
Save qy1010/d6ceac28811d15156889d7e540c8b346 to your computer and use it in GitHub Desktop.
//将Objective-C代码转换为C\C++代码
xcrun -sdk iphoneos clang -arch arm64 -rewrite-objc OC源文件 -o 输出的CPP文件
如果需要链接其他框架,使用-framework参数。比如-framework UIKit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment