XcodeSelectiveTesting icon indicating copy to clipboard operation
XcodeSelectiveTesting copied to clipboard

Targets that are not included in workspace

Open Ernest0-Production opened this issue 4 months ago • 1 comments

I have xcworkspace and Package. Workspace does not use Package.

When I run a command from workspace A, the list of targets includes targets from package.

Ernest0-Production avatar Aug 12 '25 21:08 Ernest0-Production

Hey @Ernest0-Production ,

this is an unfortunate consequence of Xcode having multiple obscure ways of including local packages into a target. For the moment XcodeSelectiveTesting is assuming all packages present in the repo could be linked to a targer.

In order to mitigate this issue, it is possible to use exclude setting from the config file. I agree it's not an ideal solution and I would look for a proper fix in the future.

Code responsible for it can be found here. Essentially, I am fiding all packages present in the repo.

Hope this helps, I will keep this ticket open for the time being

mikeger avatar Aug 15 '25 11:08 mikeger