Xcode Version 12.3
-
进入目录
我自己的电脑路径是这个:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/MultiPlatform/Source/C++ File.xctemplate/WithHeader
网上找到的是这个:
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source/C++ File.xctemplate/WithHeader/
-
将
___FILEBASENAME___.hpp
修改为___FILEBASENAME___.h
-
编辑
___FILEBASENAME___.h
文件,把里边的hpp
都改成h
-
编辑
___FILEBASENAME___.cpp
文件,把里边的hpp
都改成h
#include "___FILEBASENAME___.h"