How to use Xcode performance tools with a static library project?

I have two projects - one with a static target library and a unit test target - one with a target application dependent on the static library, and my own unit test target

In a static library project, I can only perform “assembly” or “assembly and analysis”. If I create a unit test target, the tests run, but there seems to be no way to run anything with performance tools so that I can check for leaks, etc.

What is the best way to use Xcode performance tools with a static library project?

  • add a simple executable goal to the goal of testing a static library?
    (Not quite sure what that would mean)

  • add a simple application target that runs unit tests or otherwise uses the library

  • something else?

Any advice would be appreciated.

Arc

+3
source share
1 answer

Your second approach is correct. You need some kind of productivity tool app to chew on. Tools, such as tools, are runtime analysis tools; a static library alone cannot be analyzed using such a tool (what is static analysis intended for).

+1
source

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


All Articles