简体   繁体   中英

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. But when asked in the project settings for a language selection. I am hesitating, the choice is between Objective-C and Swift languages. Is the choice of project language when building c++ static library is important?

Choose Objective-C. Objective-C works better with C++ than Swift does. See the following Stack Overflow question:

What is Objective C++?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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