I made 2 changes to fix the problem.
First, I added XCTest as a linked framework in Package.swift in the Hela package. Second, I found that simply adding a Swift package to an Xcode project causes the primary build target to link the Hela package which links XCTest. Since that will only work with test targets linking that primary target should be removed. Instead only link the test target which will use the Hela package.
The details are covered on the issue on GitHub. See the commits for the changes.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: