Ask Your Question
1

What are the steps to configure Xcode build settings for creating a release static library instead of a debug one?

asked 2022-01-17 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-11-16 18:00:00 +0000

huitzilopochtli gravatar image
  1. Open your Xcode project and select your project in the Project Navigator.

  2. Select your target from the Targets list.

  3. Click Build Settings tab.

  4. Search for "debug information format" and set it to "DWARF with dSYM File" for the release configuration.

  5. Search for "Optimization Level" and set it to "-Os".

  6. Search for "Build Active Architecture Only" and set it to "Yes" for the release configuration.

  7. Search for "Strip Debug Symbols During Copy" and set it to "Yes" for the release configuration.

  8. Search for "One or More Targets" and select "All" for the release configuration.

  9. Search for "Skip Install" and set it to "Yes" for the release configuration.

  10. Build your project for the release configuration. The resulting output should be a release static library.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-17 11:00:00 +0000

Seen: 10 times

Last updated: Nov 16 '21