Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Convert "Command Line Tool" Project to "C/C++ Library" Project

Tags:

xcode

xcode4

If I have a "Command Line Tool" project in Xcode, and just want to build a "C/C++ Library", can I convert my existing project without deleting the project file and starting from scratch? (I want to maintain all my groups / organization / settings / etc).

Thanks.

like image 457
Steve Avatar asked Apr 08 '26 16:04

Steve


1 Answers

For anyone wondering the same thing I was, here's the solution:

My first problem was forgetting/not realizing that "projects" and "targets" are two different things in Xcode. In the Microsoft world, "projects" have "type"s (Class Library / Application / etc). Not so in Xcode.

So, if you want to build a Static Library, the solution is simple; just add a "Static Library" target:

Adding a new target

like image 71
Steve Avatar answered Apr 11 '26 20:04

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!