xcode 如何将我的 .m 文件更改为 .mm 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15734521/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change my .m file to a .mm file?
提问by Surz
How can I change my .m file to a .mm file?
如何将我的 .m 文件更改为 .mm 文件?
I'm getting the error: cassert file not found
我收到错误:找不到 cassert 文件
I have researched and found that I need to change my files to .mm?
我已经研究并发现我需要将我的文件更改为 .mm?
How can I do this?
我怎样才能做到这一点?
回答by Ypmits
If you are in XCode you can simply select the file in the Project Navigator, after selecting it, wait a moment, click on it again and the filename will automatically be selectable. You can then change the filename to '.mm'
如果您在 XCode 中,您可以简单地在项目导航器中选择文件,选择后,稍等片刻,再次单击它,文件名将自动可选。然后您可以将文件名更改为“.mm”