Skip to content

Instantly share code, notes, and snippets.

@jaisonv
Created November 25, 2017 02:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaisonv/ca1fa4578c449080539ed50d87a98268 to your computer and use it in GitHub Desktop.
Save jaisonv/ca1fa4578c449080539ed50d87a98268 to your computer and use it in GitHub Desktop.
Error running tests on framework when your framework has third party frameworks dependencies
When adding a third framework to yours you may face the following error if you try to run tests:
The bundle “[framework-name]Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
(dlopen_preflight([framework-path]): Library not loaded: @rpath/[third-framework-name].framework/[third-framework-name]
Referenced from: [derived-data-framework-path]
Reason: image not found)
Program ended with exit code: 82
This problem can be solved by adding "$(PROJECT_DIR)" to the "Runpath Search Paths" on the framework's Build Settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment