JAMTestHelper
JAMTestHelper copied to clipboard
Problem running tests w.JAMTestHelper on physical device
Here's list of steps to reproduce:
- I create sample application with UI tests
- Run
Cmd + Ugot success - Add pod file with the following content:
target 'TestProjectUITests', :exclusive => true do
platform :ios, '9.0'
use_frameworks!
pod "JAMTestHelper"
end
- Run
pod install - Run
Cmd + Ugot error:XCTest' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)After google search figured the solution is setting enable bit code to NO: http://take.ms/TzN8I - Run
Cmd + Ugot green build but tests always fail.
Note on simulator - no problems.
Full log is as follows:
2016-06-13 22:10:06.682 XCTRunner[20405:6816312] Running tests...
2016-06-13 22:10:06.749 XCTRunner[20405:6816312] The bundle “TestProjectUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-06-13 22:10:06.749 XCTRunner[20405:6816312] (dlopen_preflight(/var/containers/Bundle/Application/6BE65B3E-8962-40CB-A6E7-D9F1ADE1D743/TestProjectUITests-Runner.app/PlugIns/TestProjectUITests.xctest/TestProjectUITests): Library not loaded: @rpath/JAMTestHelper.framework/JAMTestHelper
Referenced from: /var/containers/Bundle/Application/6BE65B3E-8962-40CB-A6E7-D9F1ADE1D743/TestProjectUITests-Runner.app/PlugIns/TestProjectUITests.xctest/TestProjectUITests
Reason: image not found)