简体   繁体   English

在Xcode 9.1中创建.mm文件

[英]Create .mm file in xcode 9.1

I am unable to create .mm file in Xcode 9.1. 我无法在Xcode 9.1中创建.mm文件。 When I add file and select c file it create .m file and when I select c++ then it create .cpp file. 当我添加文件并选择c文件时,它将创建.m文件;当我选择c ++时,它将创建.cpp文件。 please suggest me how to create .mm file in Xcode 9.1. 请建议我如何在Xcode 9.1中创建.mm文件。

You just need to change the extension to .mm. 您只需要将扩展​​名更改为.mm。 There is no option to create a file with .mm extension in Xcode. 无法选择在Xcode中创建扩展名为.mm的文件。 Refer this . 请参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM