Search code examples
iosxcodexcode9.1

Create .mm file in xcode 9.1


I am unable to create .mm file in Xcode 9.1. When I add file and select c file it create .m file and when I select c++ then it create .cpp file. please suggest me how to create .mm file in Xcode 9.1.


Solution

  • You just need to change the extension to .mm. There is no option to create a file with .mm extension in Xcode. Refer this.