简体   繁体   English

生成C ++静态库项目时,使用Xcode中的项目语言

[英]Project language in Xcode when building an C++ static library project

I would like to create a new Cocoa Touch Static Library project in Xcode which will build C++ source code. 我想在Xcode中创建一个新的Cocoa Touch静态库项目,该项目将构建C ++源代码。 But when asked in the project settings for a language selection. 但是当在项目设置中要求输入语言选择时。 I am hesitating, the choice is between Objective-C and Swift languages. 我很犹豫,是在Objective-C语言和Swift语言之间进行选择。 Is the choice of project language when building c++ static library is important? 构建c ++静态库时,对项目语言的选择重要吗?

Choose Objective-C. 选择Objective-C。 Objective-C works better with C++ than Swift does. 与Swift相比,Objective-C在C ++中的工作效果更好。 See the following Stack Overflow question: 请参阅以下堆栈溢出问题:

What is Objective C++? 什么是Objective C ++?

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

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