Creating a library (.a) on Mac OS X and Xcode

I am porting some code from Linux to Mac OS X. Code is a static library that you add to your code. Basically, after compiling the code, you get MyLib.a, which can be associated with any project you want. I manage the "project" through the Makefile.

Is there a way to have an Xcode project that ultimately creates the same library? How?

Thanks for the help.

+3
source share
1 answer

Of course. You do not say that, but I assume that you are using C or C ++ as the source.

, Xcode 3.2.2, (File > New Project...), New Project . " " Mac OSX . "BSD C Library" "STL ++ Library" . , , "BSD C Library". , , , .

, Xcode , , Apple New Project. , 3.2.2, .

, , ++. , , C, C + + libs build .

+1

Source: https://habr.com/ru/post/1767560/


All Articles