解决方法:build settings 里 Compile Sources As选项改为Objective C++。 转载于:https://www.cnblogs.com/1394389856fei/p/5337841.html