Skip to content

How can I build static library in Xcode for macOS? #1481

Closed Answered by Youw
lydasia asked this question in Q&A
Discussion options

You must be logged in to vote

If you plan to use XCode project specifically, you can poke around in XCode project settings locally to change it.
There is no external option to change it. (Some projects even have (technically) different XCode projects for different build variants, like shared/static).

If XCode project is not a requirement for you - use Autotools to build the project and static library may be selected during configuration (check CI scripts if you need an example how to do so).

The other alternative is to use libusb-cmake. It even allows you to generate an XCode project for static variant of the library build.
NOTE: that project is not portable/movable, i.e. you need to generate it each time you need to …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lydasia
Comment options

Comment options

You must be logged in to vote
1 reply
@lydasia
Comment options

Answer selected by lydasia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants