CocoaPods test target Library not loaded exit code 82
<p>This appears to be an issue with CocoaPods, asking here first as per the <a href="https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md" rel="noreferrer">guidelines</a>.</p>

<p>Using Xcode 7.3.1, CocoaPods 1.0.1, 1.0.0-beta6 and 1.1.0-beta1</p>

<p>Create a new pod project using <code>pod lib create SwiftTest</code></p>

<ul>
<li>Language? Swift</li>
<li>Demo? Yes</li>
<li>Test frameworks? None</li>
<li>View based testing? No </li>
</ul>

<p>Add a single class function to the auto-generated <code>ReplaceMe.swift</code> file to test the projects integration.</p>

<p>Calling the function from the example project works as expected.</p>

<p>Calling the function from the test project fails with the following error:</p>

<pre><code>The bundle “SwiftTest_Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
(dlopen_preflight(/...): Library not loaded: @rpath/SwiftTest.framework/SwiftTest ... Reason: image not found)
Program ended with exit code: 82
</code></pre>

<p>Example project: <a href="https://github.com/NextFaze/SwiftTest" rel="noreferrer">https://github.com/NextFaze/SwiftTest</a></p>