Tyko Rouge
Tyko Rouge

Reputation: 51

Failed to build Swift framework test

I'm trying to run my test for a custom framework but I get this error:

"xctest[75653:2358339] The bundle “Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle."

I added some dependencies using carthage to the framework. Could this be the issue?

Upvotes: 3

Views: 282

Answers (2)

Kappe
Kappe

Reputation: 9495

Solution: Just set manually your Host Application in the test target

enter image description here

Upvotes: 1

franck
franck

Reputation: 3015

  • Copy the xcodeprojs from your dependencies inside your workspace
  • In the buildPhase/link binary with libraries from the test target, add the dependencies clicking + and choosing them from the workspace (you must have your cocoa framework there + the dependencies)
  • Command B
  • Command U

Upvotes: 1

Related Questions