JAMTestHelper icon indicating copy to clipboard operation
JAMTestHelper copied to clipboard

Problem running tests w.JAMTestHelper on physical device

Open stas6100 opened this issue 9 years ago • 0 comments

Here's list of steps to reproduce:

  1. I create sample application with UI tests
  2. Run Cmd + U got success
  3. Add pod file with the following content:
target 'TestProjectUITests', :exclusive => true do
    platform :ios, '9.0'
    use_frameworks!
    pod "JAMTestHelper"
end
  1. Run pod install
  2. Run Cmd + U got 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
  3. Run Cmd + U got 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)

stas6100 avatar Jun 14 '16 05:06 stas6100