tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

Test targets do not index if they rely on imported dynamic frameworks

Open erikkerber opened this issue 2 years ago • 0 comments

During project generation, Tulsi purposely skips creating index targets for tests, because it believes it makes proper targets for tests

If a test depends on a packaged dynamic .framework, however, the test target does not get its FRAMEWORK_SEARCH_PATH updated with the location of those frameworks. When creating an index target, the build graph is recursively traversed to find and populate these, which is not done for non-index targets.

Though I'm confident this is a bug, I'd love to solicit feedback on if the answer is to:

  1. Simply make index targets for tests as well
  2. Recursively traverse dependencies to populate search paths for non-index targets.

erikkerber avatar Mar 08 '22 22:03 erikkerber