lyndsey-ferguson / fastlane-plugin-test_center

🎯 The best fastlane plugin to understand and tame misbehaving iOS tests 🎉
MIT License
285 stars 66 forks source link

:tests_from_xctestrun and :multi_scan no longer work with version 2 of the xctestrun file #188

Closed alexnot95 closed 4 years ago

alexnot95 commented 4 years ago

My Fastfile

lane :native_ui_test do |options|
  scheme = ENV["UI_TESTS_SCHEME"] || "Regression"
  workspace = "#{ENV["MAIN_TARGET"]}.xcworkspace"
  clean_up_and_install_dependencies

  multi_scan(
    workspace: workspace,
    devices: ["iPhone Xs"],
    scheme: scheme,
    output_types: "junit",
    output_files: "../junit_report.xml",
    try_count: 2,
    fail_build: false,
    reset_simulator: true,
    skip_slack: true,
    code_coverage: true,
    formatter: "xcpretty-json-formatter",
    result_bundle: true,
  )
  xchtmlreport
end

While running native_ui_test I receive 'no implicit conversion of String into Integer' error with Traceback:

    40: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:in `<main>'
    39: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:in `load'
    38: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/bin/fastlane:23:in `<top (required)>'
    37: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
    36: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
    35: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
    34: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
    33: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
    32: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
    31: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
    30: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
    29: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
    28: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
    27: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
    26: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
    25: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    24: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    23: from /Users/user.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/lane.rb:33:in `call'
    22: from Fastfile:85:in `block in parsing_binding'
    21: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
    20: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
    19: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
    18: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
    17: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
    16: from /Users/user.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    15: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.140.0/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
    14: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/multi_scan.rb:34:in `run'
    13: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/multi_scan.rb:34:in `new'
    12: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:20:in `initialize'
    11: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:28:in `setup_testcollector'
    10: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:in `test_batches'
     9: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:in `each'
     8: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:117:in `block in test_batches'
     7: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:96:in `testables_tests'
     6: from /Users/user.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:70:in `xctestrun_known_tests'
     5: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:8:in `run'
     4: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:in `xctestrun_tests'
     3: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:in `each'
     2: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:18:in `block in xctestrun_tests'
     1: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in `xctest_bundle_path'
/Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in `[]': [!] no implicit conversion of String into Integer (TypeError)
lyndsey-ferguson commented 4 years ago

A different error occurs when I run a similar Fastfile:

lane :testing do
  multi_scan(
    project: File.absolute_path('../AtomicBoy/AtomicBoy.xcodeproj'),
    scheme: 'AtomicBoy',
    devices: ["iPhone 8"],
    output_types: "junit",
    output_files: "../junit_report.xml",
    try_count: 2,
    fail_build: false,
    reset_simulator: true,
    skip_slack: true,
    code_coverage: true,
    formatter: "xcpretty-json-formatter",
    result_bundle: true
  )
end
...
DEBUG [2020-01-20 14:00:20.23]: Copying junit report file /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyUITests-batch-2/junit_report-2.xml
DEBUG [2020-01-20 14:00:20.23]: Collating test_result bundles ["/Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyUITests-batch-2/AtomicBoy-1.test_result", "/Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyUITests-batch-2/AtomicBoy-2.test_result"]
DEBUG [2020-01-20 14:00:20.23]: result bundles are of format version 3
INFO [2020-01-20 14:00:20.25]: xcrun xcresulttool merge /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/AtomicBoy-1.test_result20200120-19362-hlu55k.xcresult /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/AtomicBoy-2.test_result20200120-19362-vq5x4g.xcresult --output-path /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/d20200120-19362-b1frxx/AtomicBoy-2.test_result
INFO [2020-01-20 14:00:20.25]: $ xcrun xcresulttool merge /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/AtomicBoy-1.test_result20200120-19362-hlu55k.xcresult /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/AtomicBoy-2.test_result20200120-19362-vq5x4g.xcresult --output-path /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/d20200120-19362-b1frxx/AtomicBoy-2.test_result
INFO [2020-01-20 14:00:22.28]: ▸ [v3] Merged to: /var/folders/b_/rglnmdbd2hn6pskh12w78y9ddb1yfp/T/d20200120-19362-b1frxx/AtomicBoy-2.test_result
INFO [2020-01-20 14:00:24.47]: Finished collating test_result bundle to '/Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyUITests-batch-2/AtomicBoy-2.test_result'
DEBUG [2020-01-20 14:00:24.68]: Collating results for all batches
DEBUG [2020-01-20 14:00:24.68]: ReportCollator collating
WARN [2020-01-20 14:00:24.68]: Lane Context:
INFO [2020-01-20 14:00:24.68]: {:PLATFORM_NAME=>nil, :LANE_NAME=>"testing"}
ERROR [2020-01-20 14:00:24.68]: No such file or directory @ realpath_rec - /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyTests
INFO [2020-01-20 14:00:24.68]: Successfully generated documentation at path '/Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/README.md'

+------+------------+-------------+
|        fastlane summary         |
+------+------------+-------------+
| Step | Action     | Time (in s) |
+------+------------+-------------+
| 💥   | multi_scan | 261         |
+------+------------+-------------+

DEBUG [2020-01-20 14:00:24.69]: All plugins are up to date
ERROR [2020-01-20 14:00:24.69]: fastlane finished with errors

WARN [2020-01-20 14:00:24.69]: Error accessing file, this might be due to fastlane's directory handling
WARN [2020-01-20 14:00:24.69]: Check out https://docs.fastlane.tools/advanced/#directory-behavior for more details

DEBUG [2020-01-20 14:00:24.69]: All plugins are up to date

#######################################################################
# fastlane 2.140.0 is available. You are on 2.138.0.
# You should use the latest version.
# Please update using `bundle update fastlane`.
#######################################################################
bundler: failed to load command: fastlane (/Users/lyndsey.ferguson/.rbenv/versions/2.4.1/bin/fastlane)
Errno::ENOENT: No such file or directory @ realpath_rec - /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/fastlane/test_output/AtomicBoyTests
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/report_collator.rb:136:in `realdirpath'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/report_collator.rb:136:in `collate_test_result_bundles'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/report_collator.rb:29:in `collate'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:204:in `collate_batched_reports_for_testable'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:165:in `block in collate_batched_reports'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:164:in `each'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:164:in `collate_batched_reports'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:146:in `run_test_batches'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:53:in `run'
  /Users/lyndsey.ferguson/repo/fastlane-plugin-test_center/lib/fastlane/plugin/test_center/actions/multi_scan.rb:35:in `run'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:256:in `block (2 levels) in execute_action'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:235:in `block in execute_action'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:14:in `block in parsing_binding'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fastlane-2.138.0/bin/fastlane:23:in `<top (required)>'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/bin/fastlane:23:in `load'
  /Users/lyndsey.ferguson/.rbenv/versions/2.4.1/bin/fastlane:23:in `<top (required)>'
lyndsey-ferguson commented 4 years ago

@alexnot95 I can no longer reproduce this, can you try again? If able to reproduce, can you provide the full logs by running your fastlane with the --verbose flag?

lyndsey-ferguson commented 4 years ago

Let me know if you can provide the verbose logs. If not, I can close this Issue on Friday, Feb 21st.

alexnot95 commented 4 years ago

Hi @lyndsey-ferguson I still can reproduce this issue :( Here is my fastfile:

lane :native_ui_test_new do |options|
  scheme = ENV["UI_TESTS_SCHEME"] || "Regression"
  workspace = "#{ENV["MAIN_TARGET"]}.xcworkspace"
  clean_up_and_install_dependencies
  multi_scan(
    workspace: workspace,
    devices: ["iPhone 11"],
    scheme: scheme,
    output_types: "junit",
    output_files: "../junit_report.xml",
    try_count: 2,
    fail_build: false,
    reset_simulator: true,
    skip_slack: true,
    code_coverage: true,
    formatter: "xcpretty-json-formatter",
    result_bundle: true
  )
  xchtmlreport
end

Logs with --verbose flag:

DEBUG [2020-02-18 10:08:05.84]: After building, found xctestrun files ["/Users/alexeysomov/Library/Developer/Xcode/DerivedData/TestProject-glpzcstadckwmkfaazamhcdzqrfn/Build/Products/Regression_LocalizationUpload_iphonesimulator13.2-x86_64.xctestrun", "/Users/alexeysomov/Library/Developer/Xcode/DerivedData/TestProject-glpzcstadckwmkfaazamhcdzqrfn/Build/Products/Regression_Regression_iphonesimulator13.2-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-02-18 10:08:05.84]: Removing report files generated by the build
DEBUG [2020-02-18 10:08:05.84]:   ./fastlane/test_output/../junit_report.xml
DEBUG [2020-02-18 10:08:05.87]: Getting tests from xctestrun file at '/Users/alexeysomov/Library/Developer/Xcode/DerivedData/TestProject-glpzcstadckwmkfaazamhcdzqrfn/Build/Products/Regression_LocalizationUpload_iphonesimulator13.2-x86_64.xctestrun'
INFO [2020-02-18 10:08:05.88]: -----------------------------------
INFO [2020-02-18 10:08:05.88]: --- Step: clean_build_artifacts ---
INFO [2020-02-18 10:08:05.88]: -----------------------------------
INFO [2020-02-18 10:08:05.88]: Cleaned up build artifacts 🐙
WARN [2020-02-18 10:08:05.88]: Fail? with 'native_ui_test_new' Exception no implicit conversion of String into Integer
WARN [2020-02-18 10:08:05.88]: Lane Context:
INFO [2020-02-18 10:08:05.88]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"native_ui_test_new"}
ERROR [2020-02-18 10:08:05.88]: no implicit conversion of String into Integer
INFO [2020-02-18 10:08:05.89]: Successfully generated documentation at path '/Users/alexeysomov/Documents/GitHub/TestProject/fastlane/README.md'

+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | Verifying fastlane version | 0           |
| 2    | default_platform           | 0           |
| 3    | Verifying fastlane version | 0           |
| 4    | default_platform           | 0           |
| 5    | import_from_git            | 3           |
| 6    | xcversion                  | 0           |
| 7    | clear_derived_data         | 2           |
| 8    | cocoapods                  | 5           |
| 9    | cd .. && ./.autogen.sh     | 32          |
| 💥   | multi_scan                 | 308         |
| 11   | clean_build_artifacts      | 0           |
+------+----------------------------+-------------+

DEBUG [2020-02-18 10:08:05.90]: All plugins are up to date
ERROR [2020-02-18 10:08:05.90]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: no implicit conversion of String into Integer

URL: https://api.github.com/search/issues?q=no%20implicit%20conversion%20of%20String%20into%20Integer+repo:fastlane/fastlane
➡️  [Regression] google_play_track_version_codes returns an array of strings (instead of an array of integers)
    https://github.com/fastlane/fastlane/issues/15622 [closed] 4 💬
    5 weeks ago

➡️  Error: no implicit conversion of Integer into String
    https://github.com/fastlane/fastlane/issues/13799 [closed] 3 💬
    02 Feb 2019

➡️  [PEM] `fastlane pem` fails on multiple app_identifiers `no implicit conversion of Array into String`
    https://github.com/fastlane/fastlane/issues/13559 [closed] 15 💬
    06 Mar 2019

and 17 more at: https://github.com/fastlane/fastlane/search?q=no%20implicit%20conversion%20of%20String%20into%20Integer&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
DEBUG [2020-02-18 10:08:06.89]: All plugins are up to date
Traceback (most recent call last):
    40: from /Users/alexeysomov/.rbenv/versions/2.5.0/bin/fastlane:23:in `<main>'
    39: from /Users/alexeysomov/.rbenv/versions/2.5.0/bin/fastlane:23:in `load'
    38: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/bin/fastlane:23:in `<top (required)>'
    37: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
    36: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
    35: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
    34: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
    33: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
    32: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
    31: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
    30: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
    29: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
    28: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
    27: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
    26: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
    25: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    24: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    23: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane.rb:33:in `call'
    22: from Fastfile:64:in `block in parsing_binding'
    21: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
    20: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
    19: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
    18: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
    17: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
    16: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    15: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
    14: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/multi_scan.rb:34:in `run'
    13: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/multi_scan.rb:34:in `new'
    12: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:20:in `initialize'
    11: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:28:in `setup_testcollector'
    10: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:in `test_batches'
     9: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:in `each'
     8: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:117:in `block in test_batches'
     7: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:96:in `testables_tests'
     6: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/helper/test_collector.rb:70:in `xctestrun_known_tests'
     5: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:8:in `run'
     4: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:in `xctestrun_tests'
     3: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:in `each'
     2: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:18:in `block in xctestrun_tests'
     1: from /Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in `xctest_bundle_path'
/Users/alexeysomov/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.8.16/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in `[]': [!] no implicit conversion of String into Integer (TypeError)
lyndsey-ferguson commented 4 years ago

New Issues usually have this template to fill in, I need it to help me further diagnose:

<!-- Please run `fastlane env` and copy the output below. This will help us help you :+1:
If you used the `--capture_output` option, please remove this block as it is already included there. -->
lyndsey-ferguson commented 4 years ago

Also, can you include the /Users/alexeysomov/Library/Developer/Xcode/DerivedData/TestProject-glpzcstadckwmkfaazamhcdzqrfn/Build/Products/Regression_LocalizationUpload_iphonesimulator13.2-x86_64.xctestrun file?

alexnot95 commented 4 years ago

@lyndsey-ferguson Here is fastlane env:

<details><summary>🚫 fastlane environment 🚫</summary>

### Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 10.15.3                                     |
| Ruby                        | 2.5.0                                       |
| Bundler?                    | false                                       |
| Git                         | git version 2.24.0                          |
| Installation Source         | ~/.rbenv/versions/2.5.0/bin/fastlane        |
| Host                        | Mac OS X 10.15.3 (19D76)                    |
| Ruby Lib Dir                | ~/.rbenv/versions/2.5.0/lib                 |
| OpenSSL Version             | OpenSSL 1.1.1d  10 Sep 2019                 |
| Is contained                | false                                       |
| Is homebrew                 | false                                       |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 11.1                                        |

### System Locale

| Error                       |
| --------------------------- |
| No Locale with UTF8 found 🚫 |

### fastlane files:

<details><summary>`./fastlane/Fastfile`</summary>

```ruby
#!/usr/bin/ruby
fastlane_version "2.130.0"
default_platform :ios
import("./download-local-content/local-content-helpers.rb")
import("./download-local-content/food-images.rb")
import("./download-local-content/program-images.rb")
import("./download-local-content/exercise-images.rb")
import("./download-local-content/workouts-videos.rb")
import("./localization-upload/analyze-and-upload.rb")

import_from_git(
  url: 'git@github.com:TestProject/Fastlane.git',
  path: 'Fastfile'
)
lane :ui_test do |options|
  execute_ui_test(options)
end
lane :ui_test_archive do |options|
  options[:archive_only] = true
  execute_ui_test(options)
end
lane :test do |options|
  options[:scheme] = 'UnitTests'
  execute_test(options)
end
desc "Submit a new Crashlytics build from provided branch with badge"
lane :beta do |options|
  execute_beta(options)
end
desc "Submit a new AdHoc Build to Apple TestFlight from develop branch"
lane :release_appstore do |options|
  execute_release_appstore(options)
end
desc "Checks if all configs settings exists in *.info plists"
lane :fullfill_plists_with_configs do
  execute_fullfill_plists_with_configs
end
desc "Passes firebase analytics argument on launchtime"
lane :enable_firebase_debug_mode do
  execute_enable_firebase_debug_mode
end
desc "Create a new release on GitHub from master branch, add tag from project version and upload changelog for it"
lane :create_tag do
  execute_create_tag
end
desc "Downloads provision profiles"
lane :download_profiles do
 execute_download_profiles
end

desc 'Registers new device to the Apple Dev Portal and recreating adhoc & development provisioning profiles.'
desc 'name - Device name.'
desc 'udid - Device identifier.'
desc 'apple_id - Apple Developer email. (You should use your personal ID. By default takes from Appfile)'
lane :register_new_device do |options|
  execute_register_device(options)
end

desc "UI tests"
lane :native_ui_test_new do |options|
  scheme = ENV["UI_TESTS_SCHEME"] || "Regression"
  workspace = "#{ENV["MAIN_TARGET"]}.xcworkspace"
  clean_up_and_install_dependencies
  multi_scan(
    workspace: workspace,
    devices: ["iPhone 11"],
    scheme: scheme,
    output_types: "junit",
    output_files: "../junit_report.xml",
    try_count: 2,
    fail_build: false,
    reset_simulator: true,
    skip_slack: true,
    code_coverage: true,
    formatter: "xcpretty-json-formatter",
    result_bundle: true
  )
  xchtmlreport
end

### To enable automatic import of translations:
### Localize Localizable.strings file in Xcode project
### Enable supported languages in Xcode project
### Add calls for private import_translation lane for supported languages
# desc "Imports transtlated Localizable.strings from App"
# lane :import_translations do 
  # execute_import_translation(lang: "ru")
  # execute_import_translation(lang: "zh-Hans")
  # execute_import_translation(lang: "zh-Hant")
  # execute_import_translation(lang: "es")
# end

`./fastlane/Appfile` ```ruby app_identifier "TestProject" # The bundle identifier of your app apple_id "ci@TestProject" # Your Apple email address team_id "*******" # Developer Portal Team ID itc_team_id '*******' # App Store Connect Team ID # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```

fastlane gems

Gem Version Update-Status
fastlane 2.141.0 🚫 Update available

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-update_provisioning_profile_specifier 1.3.1 ✅ Up-To-Date
fastlane-plugin-versioning 0.4.2 ✅ Up-To-Date
fastlane-plugin-badge 1.4.0 ✅ Up-To-Date
fastlane-plugin-slack_train 0.2.0 ✅ Up-To-Date
fastlane-plugin-xchtmlreport 0.1.1 ✅ Up-To-Date
fastlane-plugin-appcenter 1.8.0 ✅ Up-To-Date
fastlane-plugin-test_center 3.8.16 ✅ Up-To-Date
Loaded gems | Gem | Version | | ----------------------------------------------------- | ------------ | | did_you_mean | 1.2.0 | | slack-notifier | 2.3.2 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | terminal-notifier | 2.0.0 | | terminal-table | 1.8.0 | | plist | 3.5.0 | | public_suffix | 2.0.5 | | addressable | 2.7.0 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | unf_ext | 0.0.7.6 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | faraday_middleware | 0.13.1 | | fastimage | 2.1.7 | | gh_inspector | 1.1.3 | | multi_xml | 0.6.0 | | rubyzip | 1.3.0 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | dotenv | 2.7.5 | | bundler | 1.17.3 | | jwt | 2.1.0 | | uber | 0.1.0 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | mini_mime | 1.0.2 | | signet | 0.12.0 | | os | 1.0.1 | | googleauth | 0.10.0 | | httpclient | 2.8.3 | | google-api-client | 0.36.4 | | emoji_regex | 1.0.1 | | nanaimo | 0.2.6 | | colored2 | 3.1.2 | | claide | 1.0.3 | | CFPropertyList | 3.0.2 | | atomos | 0.1.3 | | xcodeproj | 1.15.0 | | unicode-display_width | 1.6.1 | | tty-screen | 0.7.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | babosa | 1.0.3 | | excon | 0.72.0 | | faraday | 0.17.3 | | json | 2.3.0 | | mini_magick | 4.10.1 | | naturally | 2.2.0 | | simctl | 1.6.8 | | multi_json | 1.14.1 | | memoist | 0.16.2 | | digest-crc | 0.4.1 | | google-cloud-errors | 1.0.0 | | google-cloud-env | 1.3.0 | | google-cloud-core | 1.5.0 | | google-cloud-storage | 1.25.1 | | openssl | 2.1.0 | | date | 1.0.0 | | fileutils | 1.0.2 | | mini_portile2 | 2.4.0 | | nokogiri | 1.10.4 | | ipaddr | 1.2.0 | | psych | 3.0.2 | | fastlane-plugin-update_provisioning_profile_specifier | 1.3.1 | | fastlane-plugin-versioning | 0.4.2 | | curb | 0.9.10 | | badge | 0.12.0 | | fastlane-plugin-badge | 1.4.0 | | fastlane-plugin-slack_train | 0.2.0 | | fastlane-plugin-xchtmlreport | 0.1.1 | | fastlane-plugin-appcenter | 1.8.0 | | csv | 1.0.0 | | xctest_list | 1.1.8 | | colorize | 0.8.1 | | fastlane-plugin-test_center | 3.8.16 |

generated on: 2020-02-19

alexnot95 commented 4 years ago

Here is file you asked for:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>TestConfigurations</key>
    <array>
        <dict>
            <key>Name</key>
            <string>Configuration</string>
            <key>TestTargets</key>
            <array>
                <dict>
                    <key>BlueprintName</key>
                    <string>TestAppUITests</string>
                    <key>BundleIdentifiersForCrashReportEmphasis</key>
                    <array>
                        <string>google.com.TestApp.PushNotification</string>
                        <string>TestApp.Design</string>
                        <string>TestApp.test</string>
                        <string>com.google.TestAppUITests</string>
                        <string>google.com</string>
                    </array>
                    <key>CommandLineArguments</key>
                    <array/>
                    <key>DependentProductPaths</key>
                    <array>
                        <string>__TESTROOT__/DebugStage-iphonesimulator/testframework</string>
                        <string>__TESTROOT__/DebugStage-iphonesimulator/TestApp.app</string>
                        <string>__TESTROOT__/DebugStage-iphonesimulator/PushNotification.appex</string>
                        <string>__TESTROOT__/DebugStage-iphonesimulator/TestAppUITests-Runner.app/PlugIns/TestAppUITests.xctest</string>
                        <string>__TESTROOT__/DebugStage-iphonesimulator/Design.framework</string>
                    </array>
                    <key>EnvironmentVariables</key>
                    <dict>
                        <key>LOCALIZATION_UPLOAD_UI_TESTS_IMAGES</key>
                        <string>/Users/user/Documents/GitHub/TestApp/fastlane/localization_images/</string>
                        <key>LOCALIZATION_UPLOAD_UI_TESTS_REPORT</key>
                        <string>/Users/user/Documents/GitHub/TestApp/fastlane/localization_report/report.plist</string>
                        <key>OS_ACTIVITY_DT_MODE</key>
                        <string>YES</string>
                        <key>SQLITE_ENABLE_THREAD_ASSERTIONS</key>
                        <string>1</string>
                    </dict>
                    <key>IsUITestBundle</key>
                    <true/>
                    <key>IsXCTRunnerHostedTestBundle</key>
                    <true/>
                    <key>ProductModuleName</key>
                    <string>TestAppUITests</string>
                    <key>SkipTestIdentifiers</key>
                    <array>
                        <string>BaseTest</string>
                        <string>FoodUITest</string>
                        <string>TodayUITest</string>
                        <string>CommunityUITests</string>
                        <string>OnboardingUITests</string>
                        <string>TrainingsUITest</string>
                        <string>ProfileTests</string>
                    </array>
                    <key>SystemAttachmentLifetime</key>
                    <string>keepNever</string>
                    <key>TestBundlePath</key>
                    <string>__TESTHOST__/PlugIns/TestAppUITests.xctest</string>
                    <key>TestHostBundleIdentifier</key>
                    <string>com.google.TestAppUITests.xctrunner</string>
                    <key>TestHostPath</key>
                    <string>__TESTROOT__/DebugStage-iphonesimulator/TestAppUITests-Runner.app</string>
                    <key>TestLanguage</key>
                    <string></string>
                    <key>TestRegion</key>
                    <string></string>
                    <key>TestingEnvironmentVariables</key>
                    <dict>
                        <key>DYLD_FALLBACK_FRAMEWORK_PATH</key>
                        <string></string>
                        <key>DYLD_FRAMEWORK_PATH</key>
                        <string>__TESTROOT__/DebugStage-iphonesimulator</string>
                        <key>DYLD_LIBRARY_PATH</key>
                        <string>__TESTROOT__/DebugStage-iphonesimulator</string>
                        <key>__XCODE_BUILT_PRODUCTS_DIR_PATHS</key>
                        <string>__TESTROOT__/DebugStage-iphonesimulator</string>
                        <key>__XPC_DYLD_FRAMEWORK_PATH</key>
                        <string>__TESTROOT__/DebugStage-iphonesimulator</string>
                        <key>__XPC_DYLD_LIBRARY_PATH</key>
                        <string>__TESTROOT__/DebugStage-iphonesimulator</string>
                    </dict>
                    <key>ToolchainsSettingValue</key>
                    <array/>
                    <key>UITargetAppCommandLineArguments</key>
                    <array/>
                    <key>UITargetAppEnvironmentVariables</key>
                    <dict/>
                    <key>UITargetAppPath</key>
                    <string>__TESTROOT__/DebugStage-iphonesimulator/TestApp.app</string>
                    <key>UserAttachmentLifetime</key>
                    <string>keepNever</string>
                </dict>
            </array>
        </dict>
    </array>
    <key>__xctestrun_metadata__</key>
    <dict>
        <key>FormatVersion</key>
        <integer>2</integer>
    </dict>
</dict>
</plist>
lyndsey-ferguson commented 4 years ago

@alexnot95 this has been very helpful, thank you. It seems that the xctestrun file format has changed.

lyndsey-ferguson commented 4 years ago

Ok. Yes, the file format has changed and will be version 2 for Xcode Schemes tha have test plans. See the release notes for more information.

lyndsey-ferguson commented 4 years ago

Okay. A test plan seems to be a separate file that the scheme references now. If so, that could break my other actions that try to get and set skipped tests in the Scheme.

lyndsey-ferguson commented 4 years ago

Ok, I've duplicated the error on my local with this new knowledge.

lyndsey-ferguson commented 4 years ago

@alexnot95 can you modify your Pluginfile per my instructions below, run bundle install, and then run your fastlane again (with the --verbose flag)?

Pluginfile:

gem 'fastlane-plugin-test_center', :git => "https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git", :branch => "issue-188-crash-with-xctestrun-file"

If there are still problems, please let me know and attach the console output as a text file to this issue (makes it easier for me to review). If it works, please let me know.

alexnot95 commented 4 years ago

Hi @lyndsey-ferguson thank you for the help, I will try and let you know how it goes :)

alexnot95 commented 4 years ago

Hi @lyndsey-ferguson I'm still receiving an error :(

Here is fastlane env: `

🚫 fastlane environment 🚫

Stack

Key Value
OS 10.15.3
Ruby 2.5.0
Bundler? false
Git git version 2.21.1 (Apple Git-122.3)
Installation Source ~/.rbenv/versions/2.5.0/bin/fastlane
Host Mac OS X 10.15.3 (19D76)
Ruby Lib Dir ~/.rbenv/versions/2.5.0/lib
OpenSSL Version OpenSSL 1.1.1d 10 Sep 2019
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 11.3.1

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./fastlane/Fastfile` ```ruby #!/usr/bin/ruby fastlane_version "2.130.0" default_platform :ios import("./download-local-content/local-content-helpers.rb") import("./download-local-content/food-images.rb") import("./download-local-content/program-images.rb") import("./download-local-content/exercise-images.rb") import("./download-local-content/workouts-videos.rb") import("./localization-upload/analyze-and-upload.rb") import_from_git( url: 'git@github.com:TestProject/Fastlane.git', path: 'Fastfile', branch: 'clean_fastfile' ) lane :ui_test do |options| execute_ui_test(options) end lane :ui_test_archive do |options| options[:archive_only] = true execute_ui_test(options) end lane :test do |options| options[:scheme] = 'UnitTests' execute_test(options) end desc "Submit a new Crashlytics build from provided branch with badge" lane :beta do |options| execute_beta(options) end desc "Submit a new AdHoc Build to Apple TestFlight from develop branch" lane :release_appstore do |options| execute_release_appstore(options) end desc "Checks if all configs settings exists in *.info plists" lane :fullfill_plists_with_configs do execute_fullfill_plists_with_configs end desc "Passes firebase analytics argument on launchtime" lane :enable_firebase_debug_mode do execute_enable_firebase_debug_mode end desc "Create a new release on GitHub from master branch, add tag from project version and upload changelog for it" lane :create_tag do execute_create_tag end desc "Downloads provision profiles" lane :download_profiles do execute_download_profiles end desc 'Registers new device to the Apple Dev Portal and recreating adhoc & development provisioning profiles.' desc 'name - Device name.' desc 'udid - Device identifier.' desc 'apple_id - Apple Developer email. (You should use your personal ID. By default takes from Appfile)' lane :register_new_device do |options| execute_register_device(options) end desc 'Run XCUITests' lane :native_ui_test_newest do |options| scheme = ENV["UI_TESTS_SCHEME"] || "Regression" clean_up_and_install_dependencies multi_scan( workspace: "#{ENV["MAIN_TARGET"]}.xcworkspace", devices: ["iPhone 11"], scheme: scheme, output_types: "junit", output_files: "../junit_report.xml", try_count: 2, fail_build: false, reset_simulator: true, skip_slack: true, code_coverage: true, formatter: "xcpretty-json-formatter", result_bundle: true ) xchtmlreport end ### To enable automatic import of translations: ### Localize Localizable.strings file in Xcode project ### Enable supported languages in Xcode project ### Add calls for private import_translation lane for supported languages # desc "Imports transtlated Localizable.strings from POEditor" # lane :import_translations do # execute_import_translation(lang: "ru") # execute_import_translation(lang: "zh-Hans") # execute_import_translation(lang: "zh-Hant") # execute_import_translation(lang: "es") # end ```
`./fastlane/Appfile` ```ruby app_identifier "TestProject" # The bundle identifier of your app apple_id "TestProject" # Your Apple email address team_id "TestProject" # Developer Portal Team ID itc_team_id 'TestProject' # App Store Connect Team ID # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```

fastlane gems

Gem Version Update-Status
fastlane 2.141.0 🚫 Update available

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-update_provisioning_profile_specifier 1.3.1 ✅ Up-To-Date
fastlane-plugin-versioning 0.4.2 ✅ Up-To-Date
fastlane-plugin-badge 1.4.0 ✅ Up-To-Date
fastlane-plugin-slack_train 0.2.0 ✅ Up-To-Date
fastlane-plugin-xchtmlreport 0.1.1 ✅ Up-To-Date
fastlane-plugin-appcenter 1.8.0 ✅ Up-To-Date
fastlane-plugin-test_center 3.9.0 ✅ Up-To-Date
Loaded gems | Gem | Version | | ----------------------------------------------------- | ------------ | | did_you_mean | 1.2.0 | | slack-notifier | 2.3.2 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | terminal-notifier | 2.0.0 | | terminal-table | 1.8.0 | | plist | 3.5.0 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | public_suffix | 2.0.5 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | faraday_middleware | 0.13.1 | | gh_inspector | 1.1.3 | | mini_magick | 4.9.5 | | multi_xml | 0.6.0 | | rubyzip | 1.3.0 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | bundler | 1.17.3 | | jwt | 2.1.0 | | uber | 0.1.0 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | mini_mime | 1.0.2 | | signet | 0.12.0 | | googleauth | 0.10.0 | | httpclient | 2.8.3 | | google-api-client | 0.36.4 | | emoji_regex | 1.0.1 | | nanaimo | 0.2.6 | | colored2 | 3.1.2 | | claide | 1.0.3 | | CFPropertyList | 3.0.2 | | atomos | 0.1.3 | | xcodeproj | 1.15.0 | | unicode-display_width | 1.6.1 | | addressable | 2.7.0 | | tty-screen | 0.7.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | babosa | 1.0.3 | | excon | 0.72.0 | | faraday | 0.17.3 | | unf_ext | 0.0.7.6 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | fastimage | 2.1.7 | | json | 2.3.0 | | dotenv | 2.7.5 | | naturally | 2.2.0 | | simctl | 1.6.8 | | multi_json | 1.14.1 | | memoist | 0.16.2 | | os | 1.0.1 | | digest-crc | 0.4.1 | | google-cloud-errors | 1.0.0 | | google-cloud-env | 1.3.0 | | google-cloud-core | 1.5.0 | | google-cloud-storage | 1.25.1 | | openssl | 2.1.0 | | date | 1.0.0 | | fileutils | 1.0.2 | | mini_portile2 | 2.4.0 | | nokogiri | 1.10.4 | | ipaddr | 1.2.0 | | psych | 3.0.2 | | fastlane-plugin-update_provisioning_profile_specifier | 1.3.1 | | fastlane-plugin-versioning | 0.4.2 | | badge | 0.12.0 | | fastlane-plugin-badge | 1.4.0 | | fastlane-plugin-slack_train | 0.2.0 | | fastlane-plugin-xchtmlreport | 0.1.1 | | fastlane-plugin-appcenter | 1.8.0 | | csv | 1.0.0 | | xctest_list | 1.1.8 | | colorize | 0.8.1 | | fastlane-plugin-test_center | 3.9.0 |

generated on: 2020-03-10

`

And here is logs with --verbose flag: `INFO [2020-03-10 11:55:53.20]: ▸ Not writing the file as content is unchanged INFO [2020-03-10 11:55:53.27]: ------------------------ INFO [2020-03-10 11:55:53.27]: --- Step: multi_scan --- INFO [2020-03-10 11:55:53.27]: ------------------------ WARN [2020-03-10 11:55:53.40]: As of Xcode 11, test_result bundles created in the output directory are actually symbolic links to an xcresult bundle

+----------------------+----------------------+ | Summary for multi_scan (test_center v3.9.0) | +----------------------+----------------------+ | try_count | 2 | +----------------------+----------------------+

ERROR [2020-03-10 11:55:53.42]: Using deprecated option: '--custom_report_file_name' (Use --output_files instead) DEBUG [2020-03-10 11:55:53.42]: Building the project in preparation for multi_scan testing ERROR [2020-03-10 11:55:53.43]: Using deprecated option: '--custom_report_file_name' (Use --output_files instead) WARN [2020-03-10 11:55:53.62]: Resolving Swift Package Manager dependencies... INFO [2020-03-10 11:55:53.62]: $ xcodebuild -resolvePackageDependencies -workspace TestProject.xcworkspace -scheme Regression INFO [2020-03-10 11:55:57.19]: ▸ Resolve Package Graph INFO [2020-03-10 11:55:57.26]: ▸ Fetching git@github.com:Alamofire/Alamofire.git INFO [2020-03-10 11:55:59.01]: ▸ Fetching git@github.com:airbnb/lottie-ios.git INFO [2020-03-10 11:56:00.76]: ▸ Fetching git@github.com:TestProject/ios-functional.git INFO [2020-03-10 11:56:02.42]: ▸ Fetching git@github.com:TestProject/ios-subscriptions.git INFO [2020-03-10 11:56:03.95]: ▸ Fetching git@github.com:danielgindi/Charts.git INFO [2020-03-10 11:56:40.50]: ▸ Fetching git@github.com:evgenyneu/keychain-swift.git INFO [2020-03-10 11:56:44.08]: ▸ Fetching git@github.com:onevcat/Kingfisher.git INFO [2020-03-10 11:56:58.00]: ▸ Cloning git@github.com:danielgindi/Charts.git INFO [2020-03-10 11:56:58.86]: ▸ Checking out git@github.com:danielgindi/Charts.git at 3.4.0 INFO [2020-03-10 11:56:59.44]: ▸ Cloning git@github.com:Alamofire/Alamofire.git INFO [2020-03-10 11:57:00.38]: ▸ Checking out git@github.com:Alamofire/Alamofire.git at 5.0.2 INFO [2020-03-10 11:57:00.77]: ▸ Cloning git@github.com:evgenyneu/keychain-swift.git INFO [2020-03-10 11:57:01.09]: ▸ Checking out git@github.com:evgenyneu/keychain-swift.git at 19.0.0 INFO [2020-03-10 11:57:01.36]: ▸ Cloning git@github.com:TestProject/ios-functional.git INFO [2020-03-10 11:57:01.60]: ▸ Checking out git@github.com:TestProject/ios-functional.git at 0.1.1 INFO [2020-03-10 11:57:01.84]: ▸ Cloning git@github.com:TestProject/ios-subscriptions.git INFO [2020-03-10 11:57:02.12]: ▸ Checking out git@github.com:TestProject/ios-subscriptions.git at 1.0.0 INFO [2020-03-10 11:57:02.45]: ▸ Cloning git@github.com:airbnb/lottie-ios.git INFO [2020-03-10 11:57:03.23]: ▸ Checking out git@github.com:airbnb/lottie-ios.git at 3.1.6 INFO [2020-03-10 11:57:03.74]: ▸ Cloning git@github.com:onevcat/Kingfisher.git INFO [2020-03-10 11:57:04.69]: ▸ Checking out git@github.com:onevcat/Kingfisher.git at 5.13.2 INFO [2020-03-10 11:57:07.81]: ▸ Resolved source packages: INFO [2020-03-10 11:57:07.81]: ▸ Lottie: git@github.com:airbnb/lottie-ios.git @ 3.1.6 INFO [2020-03-10 11:57:07.81]: ▸ Charts: git@github.com:danielgindi/Charts.git @ 3.4.0 INFO [2020-03-10 11:57:07.81]: ▸ Alamofire: git@github.com:Alamofire/Alamofire.git @ 5.0.2 INFO [2020-03-10 11:57:07.81]: ▸ Subscriptions: git@github.com:TestProject/ios-subscriptions.git @ 1.0.0 INFO [2020-03-10 11:57:07.81]: ▸ BMFunctional: git@github.com:TestProject/ios-functional.git @ 0.1.1 INFO [2020-03-10 11:57:07.81]: ▸ KeychainSwift: git@github.com:evgenyneu/keychain-swift.git @ 19.0.0 INFO [2020-03-10 11:57:07.81]: ▸ Kingfisher: git@github.com:onevcat/Kingfisher.git @ 5.13.2 INFO [2020-03-10 11:57:07.90]: ▸ resolved source packages: Lottie, Charts, Alamofire, Subscriptions, BMFunctional, KeychainSwift, Kingfisher INFO [2020-03-10 11:57:07.95]: $ xcodebuild -showBuildSettings -workspace TestProject.xcworkspace -scheme Regression WARN [2020-03-10 11:57:10.96]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout... WARN [2020-03-10 11:57:16.97]: Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout... DEBUG [2020-03-10 11:57:25.59]: Fetching available simulator devices DEBUG [2020-03-10 11:57:25.99]: Detected derived data path '/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw'

+-------------------------------------------+-------------------------------------------+ | Summary for scan 2.141.0 | +-------------------------------------------+-------------------------------------------+ | workspace | TestProject.xcworkspace | | devices | ["iPhone 11"] | | scheme | Regression | | output_types | junit | | output_files | ../junit_report.xml | | fail_build | false | | reset_simulator | true | | skip_slack | true | | code_coverage | true | | formatter | xcpretty-json-formatter | | skip_detect_devices | false | | force_quit_simulator | false | | disable_slide_to_type | true | | reinstall_app | false | | app_identifier | TestProject | | clean | false | | open_report | false | | output_directory | ./fastlane/test_output | | buildlog_path | ~/Library/Logs/scan | | include_simulator_logs | false | | derived_data_path | /Users/user/Library/Developer/Xcode | | | /DerivedData/TestProject-dkadrxfrgjeldrelym | | | naggyfzhyw | | should_zip_build_products | false | | use_clang_report_name | false | | disable_concurrent_testing | false | | skip_build | false | | build_for_testing | true | | slack_use_webhook_configured_username_an | false | | d_icon | | | slack_username | fastlane | | slack_icon_url | https://s3-eu-west-1.amazonaws.com/fastl | | | ane.tools/fastlane.png | | slack_only_on_failure | false | | xcodebuild_command | env NSUnbufferedIO=YES xcodebuild | | xcode_path | /Applications/Xcode.app | +-------------------------------------------+-------------------------------------------+

DEBUG [2020-03-10 11:57:26.02]: Before building, removing pre-existing xctestrun files: [] DEBUG [2020-03-10 11:57:26.02]: Fetching available simulator devices INFO [2020-03-10 11:57:26.43]: Resetting iPhone 11 DEBUG [2020-03-10 11:57:26.67]: Fetching available simulator devices INFO [2020-03-10 11:57:27.05]: Disabling 'Slide to Type' iPhone 11 INFO [2020-03-10 11:57:27.05]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/user/Library/Developer/CoreSimulator/Devices/BBF1C50F-9ABD-46F9-AD3B-3FB83607D8A0/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist INFO [2020-03-10 11:57:27.07]: ▸ File Doesn't Exist, Will Create: /Users/user/Library/Developer/CoreSimulator/Devices/BBF1C50F-9ABD-46F9-AD3B-3FB83607D8A0/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist INFO [2020-03-10 11:57:27.08]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace TestProject.xcworkspace -scheme Regression -destination 'platform=iOS Simulator,id=BBF1C50F-9ABD-46F9-AD3B-3FB83607D8A0' -derivedDataPath '/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw' -enableCodeCoverage YES build-for-testing | tee '/Users/user/Library/Logs/scan/TestProject-Regression.log' | xcpretty -f xcpretty-json-formatter --report junit --output '/Users/user/iOS/TestProject/fastlane/test_output/../junit_report.xml' --report junit --output '/var/folders/l0/jt8hfr0n11g5zk00gzzyqdlm0000gp/T/junit_report20200310-36581-5g16kn' INFO [2020-03-10 11:57:27.08]: ▸ Loading... INFO [2020-03-10 11:57:27.79]: ▸ Ignoring curb-0.9.9 because its extensions are not built. Try: gem pristine curb --version 0.9.9 INFO [2020-03-10 11:57:27.79]: ▸ Ignoring curb-0.9.8 because its extensions are not built. Try: gem pristine curb --version 0.9.8 INFO [2020-03-10 11:57:27.88]: ▸ Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3 INFO [2020-03-10 11:57:27.88]: ▸ Ignoring nokogiri-1.10.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.2 INFO [2020-03-10 11:57:27.89]: ▸ Ignoring nokogiri-1.10.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.1 INFO [2020-03-10 11:57:27.90]: ▸ Ignoring unf_ext-0.0.7.5 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.5 INFO [2020-03-10 11:57:46.58]: ▸ ❌ error: unable to attach DB: error: accessing build database "/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location. INFO [2020-03-10 11:57:46.58]: ▸ TEST BUILD FAILED Ignoring curb-0.9.9 because its extensions are not built. Try: gem pristine curb --version 0.9.9 Ignoring curb-0.9.8 because its extensions are not built. Try: gem pristine curb --version 0.9.8 Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3 Ignoring nokogiri-1.10.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.2 Ignoring nokogiri-1.10.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.1 Ignoring unf_ext-0.0.7.5 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.5

❌ error: unable to attach DB: error: accessing build database "/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

TEST BUILD FAILED ERROR [2020-03-10 11:57:46.62]: Exit status: 65 INFO [2020-03-10 11:57:46.63]: ----------------------------------- INFO [2020-03-10 11:57:46.63]: --- Step: clean_build_artifacts --- INFO [2020-03-10 11:57:46.63]: ----------------------------------- INFO [2020-03-10 11:57:46.63]: Cleaned up build artifacts 🐙 WARN [2020-03-10 11:57:46.63]: Fail? with 'native_ui_test_newest' Exception Error building/testing the application. See the log above. WARN [2020-03-10 11:57:46.63]: Lane Context: INFO [2020-03-10 11:57:46.63]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"native_ui_test_newest"} ERROR [2020-03-10 11:57:46.63]: Error building/testing the application. See the log above. INFO [2020-03-10 11:57:46.63]: Successfully generated documentation at path '/Users/user/iOS/TestProject/fastlane/README.md'

+------+------------------------+-------------+ | fastlane summary | +------+------------------------+-------------+ | Step | Action | Time (in s) | +------+------------------------+-------------+ | 1 | Verifying fastlane | 0 | | | version | | | 2 | default_platform | 0 | | 3 | Verifying fastlane | 0 | | | version | | | 4 | default_platform | 0 | | 5 | import_from_git | 5 | | 6 | xcversion | 0 | | 7 | clear_derived_data | 8 | | 8 | cocoapods | 7 | | 9 | cd .. && ./.autogen.sh | 53 | | 💥 | multi_scan | 113 | | 11 | clean_build_artifacts | 0 | +------+------------------------+-------------+

DEBUG [2020-03-10 11:57:46.65]: All plugins are up to date ERROR [2020-03-10 11:57:46.65]: fastlane finished with errors DEBUG [2020-03-10 11:57:46.65]: All plugins are up to date

#######################################################################

fastlane 2.143.0 is available. You are on 2.141.0.

You should use the latest version.

Please update using sudo gem install fastlane.

To see what's new, open https://github.com/fastlane/fastlane/releases.

####################################################################### Ignoring curb-0.9.9 because its extensions are not built. Try: gem pristine curb --version 0.9.9 Ignoring curb-0.9.8 because its extensions are not built. Try: gem pristine curb --version 0.9.8 Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3 Ignoring nokogiri-1.10.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.2 Ignoring nokogiri-1.10.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.1 Ignoring unf_ext-0.0.7.5 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.5 Traceback (most recent call last): 35: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:in <main>' 34: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:inload' 33: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/bin/fastlane:23:in <top (required)>' 32: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:intake_off' 31: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' 30: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:349:inrun' 29: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 28: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!' 27: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 26: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun' 25: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 24: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run' 23: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' 22: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane_manager.rb:56:incruise_lane' 21: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:in execute' 20: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:inchdir' 19: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' 18: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane.rb:33:incall' 17: from Fastfile:64:in block in parsing_binding' 16: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing' 15: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' 14: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action' 13: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:in chdir' 12: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:253:inblock in execute_action' 11: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' 10: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:261:inblock (2 levels) in execute_action' 9: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/multi_scan.rb:34:in run' 8: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/multi_scan.rb:156:inprepare_for_testing' 7: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/multi_scan.rb:197:in build_for_testing' 6: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/scan/lib/scan/runner.rb:22:inrun' 5: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/scan/lib/scan/runner.rb:67:in test_app' 4: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/command_executor.rb:89:inexecute' 3: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/scan/lib/scan/runner.rb:76:in block in test_app' 2: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/scan/lib/scan/error_handler.rb:46:inhandle_build_error' 1: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:inbuild_failure!': [!] Error building/testing the application. See the log above. (FastlaneCore::Interface::FastlaneBuildFailure) user-2:TestProject user$ `

alexnot95 commented 4 years ago

And here is logs without verbose flag: `

11:46:42: --- Step: clean_build_artifacts ---

11:46:42: Cleaned up build artifacts 🐙 11:46:42: Fail? with 'native_ui_test_newest' Exception no implicit conversion of String into Integer +------------------+-----------------------+ | Lane Context | +------------------+-----------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | | | LANE_NAME | native_ui_test_newest | +------------------+-----------------------+ 11:46:42: no implicit conversion of String into Integer

+------+-----------------------+-------------+ | fastlane summary | +------+-----------------------+-------------+ | Step | Action | Time (in s) | +------+-----------------------+-------------+ | 1 | Verifying fastlane | 0 | | | version | | | 2 | default_platform | 0 | | 3 | Verifying fastlane | 0 | | | version | | | 4 | default_platform | 0 | | 5 | import_from_git | 4 | | 6 | xcversion | 0 | | 7 | clear_derived_data | 11 | | 8 | cocoapods | 7 | | 9 | cd .. && | 42 | | | ./.autogen.sh | | | 💥 | multi_scan | 610 | | 11 | clean_build_artifacts | 0 | +------+-----------------------+-------------+

11:46:42: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️ [Regression] google_play_track_version_codes returns an array of strings (instead of an array of integers) https://github.com/fastlane/fastlane/issues/15622 [closed] 4 💬 11 Jan 2020

➡️ Error: no implicit conversion of Integer into String https://github.com/fastlane/fastlane/issues/13799 [closed] 3 💬 02 Feb 2019

➡️ [PEM] fastlane pem fails on multiple app_identifiers no implicit conversion of Array into String https://github.com/fastlane/fastlane/issues/13559 [closed] 15 💬 06 Mar 2019

and 17 more at: https://github.com/fastlane/fastlane/search?q=no%20implicit%20conversion%20of%20String%20into%20Integer&type=Issues&utf8=✓

🔗 You can ⌘ + double-click on links to open them directly in your browser.

#######################################################################

fastlane 2.143.0 is available. You are on 2.141.0.

You should use the latest version.

Please update using sudo gem install fastlane.

To see what's new, open https://github.com/fastlane/fastlane/releases.

####################################################################### Ignoring curb-0.9.9 because its extensions are not built. Try: gem pristine curb --version 0.9.9 Ignoring curb-0.9.8 because its extensions are not built. Try: gem pristine curb --version 0.9.8 Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3 Ignoring nokogiri-1.10.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.2 Ignoring nokogiri-1.10.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.1 Ignoring unf_ext-0.0.7.5 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.5 Traceback (most recent call last): 40: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:in <main>' 39: from /Users/user/.rbenv/versions/2.5.0/bin/fastlane:23:inload' 38: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/bin/fastlane:23:in <top (required)>' 37: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:intake_off' 36: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' 35: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:349:inrun' 34: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 33: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!' 32: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 31: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun' 30: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 29: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run' 28: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' 27: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane_manager.rb:56:incruise_lane' 26: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:in execute' 25: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:45:inchdir' 24: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' 23: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/lane.rb:33:incall' 22: from Fastfile:64:in block in parsing_binding' 21: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing' 20: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' 19: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action' 18: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:227:in chdir' 17: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:253:inblock in execute_action' 16: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' 15: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/runner.rb:261:inblock (2 levels) in execute_action' 14: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/multi_scan.rb:41:in run' 13: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/multi_scan.rb:41:innew' 12: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:24:in initialize' 11: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:44:insetup_testcollector' 10: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:in test_batches' 9: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/test_collector.rb:116:ineach' 8: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/test_collector.rb:117:in block in test_batches' 7: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/test_collector.rb:96:intestables_tests' 6: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/helper/test_collector.rb:70:in xctestrun_known_tests' 5: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:8:inrun' 4: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:in xctestrun_tests' 3: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:15:ineach' 2: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:18:in block in xctestrun_tests' 1: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:inxctest_bundle_path' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in []': [!] no implicit conversion of String into Integer (TypeError)

lyndsey-ferguson commented 4 years ago

@alexnot95 I don't think you're testing the test version of the plugin for this fix. In the log that you posted, I see:

/Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/lib/fastlane/plugin/test_center/actions/tests_from_xctestrun.rb:67:in []': [!] no implicit conversion of String into Integer (TypeError)

In the test version, that line is an else and does not try to index into an array.

Also, not the path to the plugin: /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/fastlane-plugin-test_center-3.9.0/

Note that version 3.9.0. That should instead be the Git commit SHA hash. Can you please confirm that you followed the instructions above? Also, please run your fastlane with bundle exec fastlane <lane name>. That will confirm that it is using the gems associated with the Gemfile.lock file.

lyndsey-ferguson commented 4 years ago

@alexnot95 any update on your testing of this?

alexnot95 commented 4 years ago

Hi @lyndsey-ferguson looks like multi_scan doesn't see the tests :(

[14:07:39]: fastlane finished with errors [!] You must pass at least one result_bundle_path

[14:07:36]: Running Tests: ▸ Touching TestProjectUITests.xctest (in target 'TestProjectUITests' from project 'TestProject') [14:07:36]: ▸ Test build Succeeded +--------------------+---+ | Test Results | +--------------------+---+ | Number of tests | 0 | | Number of failures | 0 | +--------------------+---+ +-------------------+------+ | multi_scan results | +-------------------+------+ | result | true | | total_tests | 0 | | passing_testcount | 0 | | failed_testcount | 0 | | failed_tests | [] | | total_retry_count | 0 | | report_files | [] | +-------------------+------+

lyndsey-ferguson commented 4 years ago

@alexnot95 can you include the logs using the --verbose flag? Thanks!

alexnot95 commented 4 years ago

Hi @lyndsey-ferguson sure here is the log, also maybe it conflicts with xchtmlreport library?

`INFO [2020-03-19 09:50:24.92]: Running Tests: ▸ Touching TestProjectUITests.xctest (in target 'TestProjectUITests' from project ‘TestProject’) INFO [2020-03-19 09:50:25.09]: ▸ Test build Succeeded +--------------------+---+ | Test Results | +--------------------+---+ | Number of tests | 0 | | Number of failures | 0 | +--------------------+---+

DEBUG [2020-03-19 09:50:25.14]: After building, found xctestrun files ["/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw/Build/Products/Regression_LocalizationUpload_iphonesimulator13.2-x86_64.xctestrun", "/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw/Build/Products/Regression_Regression_iphonesimulator13.2-x86_64.xctestrun"] (choosing 1st) DEBUG [2020-03-19 09:50:25.14]: Removing report files generated by the build DEBUG [2020-03-19 09:50:25.14]: ./fastlane/test_output/../junit_report.xml DEBUG [2020-03-19 09:50:25.18]: Getting tests from xctestrun file at '/Users/user/Library/Developer/Xcode/DerivedData/TestProject-dkadrxfrgjeldrelymnaggyfzhyw/Build/Products/Regression_LocalizationUpload_iphonesimulator13.2-x86_64.xctestrun' DEBUG [2020-03-19 09:50:25.54]: Found the following tests: OnboardingUITests/testCanBackToSecondOnboardingScreen OnboardingUITests/testCanCheckHeightLogic OnboardingUITests/testCanValidateNameField OnboardingUITests/testCanCheckActivityLogic OnboardingUITests/testCanCheckDietTypeLogic OnboardingUITests/testCanCheckAllergensLogic OnboardingUITests/testCanCheckBmiScreenLogic OnboardingUITests/testCanCheckSchedulerLogic OnboardingUITests/testCanCheckLoseWeightLogic OnboardingUITests/testCanCheckAppleSignInLogic OnboardingUITests/testCanCheckHowOldAreYouLogic OnboardingUITests/testCanCheckCurrentWeightLogic OnboardingUITests/testCanCheckMealFrequencyLogic OnboardingUITests/testCanCheckLogicOnFocusZonesScreen OnboardingUITests/testCanCheckLogicOnMotivationScreen OnboardingUITests/testCanCheckLogicOnActivityTypeScreen OnboardingUITests/testCanCheckTermsAndPersonalDataApplyingLogicOnWelcomeScreen CommunityUITests/testCanCheckArticleComponentsPrecenseAndSubscriptionScreenPresenceThenRedirectFromArticleToFeedList CommunityUITests/testCanLikeDislikeDifferentFeeds CommunityUITests/testCanLikeDislikeFirstFeedAndArticle FoodUITest/testCanOpenFoodTabAndCheckSubscriptionScreen FoodUITest/testCanChangeDishFromFoodTab FoodUITest/testCanOpenFullPlanAllPlanByCategoryAndCheckRedirects FoodUITest/testCanLikeDislikeFirstFoodCards FoodUITest/testCanMarkDishAsDoneOnFoodTab FoodUITest/testCanMarkDishAsSkippedOnFoodTab FoodUITest/testCanCheckIngredientsCountersMarkIngredientsAsAndSeeRecipe FoodUITest/testCanCheckLogMealPresenceAndRedirectsOnFoodCards FoodUITest/testCanAddDishToShopingListSeeRecepiCheckThatUserCanNotAddTheSameDishTwice FoodUITest/testCanAddTwoDishFromDifferentPlacesToShoppingListCheckItCountInListAndRedirectsFormAllIngredientScreen FoodUITest/testCanAddTwoDishToShoppingListAndCheckAllIngredientsScreen TodayUITest/testCanCheckGiftBannerOnTodayTrainingAndProfileTabs TodayUITest/testCanCheckCalendarDaysSetupAndTodayButtonDisplaying TodayUITest/testCanAddStepsInHealthkitAppAndCheckCountersOnTodayAndStatisticScreens TodayUITest/testCanChangeMeasurementSystemAndCheckWaterTrackerMeasurementSystem TodayUITest/testCanChangeMeasurmentSystemAndDailyGoalInProfileAndCheckChengesInStatistics TodayUITest/testCanCheckLockedChatWithCoach TodayUITest/testCanCheckAllJourneyComponents TodayUITest/testCanOpenWorkoutCardAndCheckRedirects TodayUITest/testCanUnlockContentAndCheckChatWithCoach TodayUITest/testCanCheckCalorieTrackerMealDetailsLogic TodayUITest/testCanCheckCalorieTrackerDishSearchingLogic TodayUITest/testCanCheckContentOnNextJourneyDayAndRedirects TodayUITest/testCanCheckStepGoalCountersBeforeAndAfterChanges TodayUITest/testCanCheckPickersAndSumOfCountersAfterDrinkWater TodayUITest/testCanLogWeightFromJourneyAndCheckThatItMarkAsDone TodayUITest/testCanVerifyHealthKitApplyingLogicOnStepTrackerCard TodayUITest/testCanPassWorkoutFromJourneyAndCheckThatItMarkAsDone TodayUITest/testCanCheckSearchTagsAfterAddUpdateAndDeleteLoggedDish TodayUITest/testCanCheckInitialCalorieTrackerComponentsAndProgressByCalories TodayUITest/testCanAchieveGoalByDrinkWaterVerifyAllCountersAndCompletedProgress TodayUITest/testCanLogCalorieTrackerDifferentFoodTypesCheckAllCountersAndValuesOffAddedDishes ProfileTests/testCanCheckBmiParametersOnProfileScreen ProfileTests/testCanCheckAppleSignInLogicFromProfileAndRequestPersonalData ProfileTests/testCanCheckPolicyLinksContactUsAndMyProfileComponents ProfileTests/testCanUpdateDietType ProfileTests/testCanUpdateAllergens ProfileTests/testCanCheckEditNameLogic ProfileTests/testCanUpdateDailyStepGoal ProfileTests/testCanUpdateMealFrequency ProfileTests/testCanUpdatePhotoFromGallery ProfileTests/testCanEnableAndDisableScheduler ProfileTests/testCanCheckHeightFieldValidation ProfileTests/testCanCheckAppleRemovePersonalData ProfileTests/testCanCheckMetricSystemApplyingLogic ProfileTests/testCanCheckTargetWeightFieldValidation ProfileTests/testCanCheckCurrentWeightFieldValidation ProfileTests/testCanCheckHealthKitBeforeAndAfterActivation ProfileTests/testCanCheckBodyZonesAndFitnessLevelItemsValidation ChallengeUITest/testCanCheckChallengeModule TrainingsUITest/testCanCheckWorkoutFeedbackScreenAndFeedbackPopup TrainingsUITest/testCanPassFitnessProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanPassRunningProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanPassWalkingProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanStartRunningWorkoutAndExitFromActiveWorkout TrainingsUITest/testCanStartWalkingWorkoutAndExitFromActiveWorkout TrainingsUITest/testCanCheckActiveWorkoutComponentsAndExitFromActiveWorkout TrainingsUITest/testCanCheckMusic TrainingsUITest/testCanCheckExerciceDetailsScreen TrainingsUITest/testCanCheckRunningItemsInProgram TrainingsUITest/testCanStartAndPassWorkoutFromOnboarding TrainingsUITest/testCanCheckStartStopLogicOfActiveWorkout TrainingsUITest/testCanCheckRestScreenComponentsAndTimerWorks TrainingsUITest/testCanCheckWalkingItemsInProgramAndExitFromActiveWorkout TrainingsUITest/testCanCheckProgramComponentsCorrectNavigationAndRedirects AnalyticsUiTests/testCanCheckOnboardingAnalytics LocalizationTests/testCanCheckFoodTabLocalization LocalizationTests/testCanCheckTodayTabLocalization LocalizationTests/testCanCheckProfileTabLocalization LocalizationTests/testCanCheckTrainingsTabLocalization LocalizationTests/testCanCheckOnlySubscriptionScreensLocalization LocalizationTests/testCanCheckThatChallengeTabNotExistForLocalization LocalizationTests/testCanCheckThatCommunityItemNotExistInProfile LocalizationUpload/testCanPassOnboardingAndAnalyzeLocalizations DEBUG [2020-03-19 09:50:25.54]: Removing skipped tests: FoodUITest/testCanOpenFoodTabAndCheckSubscriptionScreen FoodUITest/testCanChangeDishFromFoodTab FoodUITest/testCanOpenFullPlanAllPlanByCategoryAndCheckRedirects FoodUITest/testCanLikeDislikeFirstFoodCards FoodUITest/testCanMarkDishAsDoneOnFoodTab FoodUITest/testCanMarkDishAsSkippedOnFoodTab FoodUITest/testCanCheckIngredientsCountersMarkIngredientsAsAndSeeRecipe FoodUITest/testCanCheckLogMealPresenceAndRedirectsOnFoodCards FoodUITest/testCanAddDishToShopingListSeeRecepiCheckThatUserCanNotAddTheSameDishTwice FoodUITest/testCanAddTwoDishFromDifferentPlacesToShoppingListCheckItCountInListAndRedirectsFormAllIngredientScreen FoodUITest/testCanAddTwoDishToShoppingListAndCheckAllIngredientsScreen OnboardingUITests/testCanBackToSecondOnboardingScreen OnboardingUITests/testCanCheckHeightLogic OnboardingUITests/testCanValidateNameField OnboardingUITests/testCanCheckActivityLogic OnboardingUITests/testCanCheckDietTypeLogic OnboardingUITests/testCanCheckAllergensLogic OnboardingUITests/testCanCheckBmiScreenLogic OnboardingUITests/testCanCheckSchedulerLogic OnboardingUITests/testCanCheckLoseWeightLogic OnboardingUITests/testCanCheckAppleSignInLogic OnboardingUITests/testCanCheckHowOldAreYouLogic OnboardingUITests/testCanCheckCurrentWeightLogic OnboardingUITests/testCanCheckMealFrequencyLogic OnboardingUITests/testCanCheckLogicOnFocusZonesScreen OnboardingUITests/testCanCheckLogicOnMotivationScreen OnboardingUITests/testCanCheckLogicOnActivityTypeScreen OnboardingUITests/testCanCheckTermsAndPersonalDataApplyingLogicOnWelcomeScreen CommunityUITests/testCanCheckArticleComponentsPrecenseAndSubscriptionScreenPresenceThenRedirectFromArticleToFeedList CommunityUITests/testCanLikeDislikeDifferentFeeds CommunityUITests/testCanLikeDislikeFirstFeedAndArticle TodayUITest/testCanCheckGiftBannerOnTodayTrainingAndProfileTabs TodayUITest/testCanCheckCalendarDaysSetupAndTodayButtonDisplaying TodayUITest/testCanAddStepsInHealthkitAppAndCheckCountersOnTodayAndStatisticScreens TodayUITest/testCanChangeMeasurementSystemAndCheckWaterTrackerMeasurementSystem TodayUITest/testCanChangeMeasurmentSystemAndDailyGoalInProfileAndCheckChengesInStatistics TodayUITest/testCanCheckLockedChatWithCoach TodayUITest/testCanCheckAllJourneyComponents TodayUITest/testCanOpenWorkoutCardAndCheckRedirects TodayUITest/testCanUnlockContentAndCheckChatWithCoach TodayUITest/testCanCheckCalorieTrackerMealDetailsLogic TodayUITest/testCanCheckCalorieTrackerDishSearchingLogic TodayUITest/testCanCheckContentOnNextJourneyDayAndRedirects TodayUITest/testCanCheckStepGoalCountersBeforeAndAfterChanges TodayUITest/testCanCheckPickersAndSumOfCountersAfterDrinkWater TodayUITest/testCanLogWeightFromJourneyAndCheckThatItMarkAsDone TodayUITest/testCanVerifyHealthKitApplyingLogicOnStepTrackerCard TodayUITest/testCanPassWorkoutFromJourneyAndCheckThatItMarkAsDone TodayUITest/testCanCheckSearchTagsAfterAddUpdateAndDeleteLoggedDish TodayUITest/testCanCheckInitialCalorieTrackerComponentsAndProgressByCalories TodayUITest/testCanAchieveGoalByDrinkWaterVerifyAllCountersAndCompletedProgress TodayUITest/testCanLogCalorieTrackerDifferentFoodTypesCheckAllCountersAndValuesOffAddedDishes TrainingsUITest/testCanCheckWorkoutFeedbackScreenAndFeedbackPopup TrainingsUITest/testCanPassFitnessProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanPassRunningProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanPassWalkingProgramAndCheckProgressOnProgramCardWorkoutDetailsAndOnJourneyScreens TrainingsUITest/testCanStartRunningWorkoutAndExitFromActiveWorkout TrainingsUITest/testCanStartWalkingWorkoutAndExitFromActiveWorkout TrainingsUITest/testCanCheckActiveWorkoutComponentsAndExitFromActiveWorkout TrainingsUITest/testCanCheckMusic TrainingsUITest/testCanCheckExerciceDetailsScreen TrainingsUITest/testCanCheckRunningItemsInProgram TrainingsUITest/testCanStartAndPassWorkoutFromOnboarding TrainingsUITest/testCanCheckStartStopLogicOfActiveWorkout TrainingsUITest/testCanCheckRestScreenComponentsAndTimerWorks TrainingsUITest/testCanCheckWalkingItemsInProgramAndExitFromActiveWorkout TrainingsUITest/testCanCheckProgramComponentsCorrectNavigationAndRedirects ProfileTests/testCanCheckBmiParametersOnProfileScreen ProfileTests/testCanCheckAppleSignInLogicFromProfileAndRequestPersonalData ProfileTests/testCanCheckPolicyLinksContactUsAndMyProfileComponents ProfileTests/testCanUpdateDietType ProfileTests/testCanUpdateAllergens ProfileTests/testCanCheckEditNameLogic ProfileTests/testCanUpdateDailyStepGoal ProfileTests/testCanUpdateMealFrequency ProfileTests/testCanUpdatePhotoFromGallery ProfileTests/testCanEnableAndDisableScheduler ProfileTests/testCanCheckHeightFieldValidation ProfileTests/testCanCheckAppleRemovePersonalData ProfileTests/testCanCheckMetricSystemApplyingLogic ProfileTests/testCanCheckTargetWeightFieldValidation ProfileTests/testCanCheckCurrentWeightFieldValidation ProfileTests/testCanCheckHealthKitBeforeAndAfterActivation ProfileTests/testCanCheckBodyZonesAndFitnessLevelItemsValidation DEBUG [2020-03-19 09:50:25.54]: Identifiers after removing skipped tests: ChallengeUITest/testCanCheckChallengeModule AnalyticsUiTests/testCanCheckOnboardingAnalytics LocalizationTests/testCanCheckFoodTabLocalization LocalizationTests/testCanCheckTodayTabLocalization LocalizationTests/testCanCheckProfileTabLocalization LocalizationTests/testCanCheckTrainingsTabLocalization LocalizationTests/testCanCheckOnlySubscriptionScreensLocalization LocalizationTests/testCanCheckThatChallengeTabNotExistForLocalization LocalizationTests/testCanCheckThatCommunityItemNotExistInProfile LocalizationUpload/testCanPassOnboardingAndAnalyzeLocalizations DEBUG [2020-03-19 09:50:25.55]: Results for each test run: []

+-------------------+------+ | multi_scan results | +-------------------+------+ | result | true | | total_tests | 0 | | passing_testcount | 0 | | failed_testcount | 0 | | failed_tests | [] | | total_retry_count | 0 | | report_files | [] | +-------------------+------+

INFO [2020-03-19 09:50:25.55]: -------------------------- INFO [2020-03-19 09:50:25.55]: --- Step: xchtmlreport --- INFO [2020-03-19 09:50:25.55]: -------------------------- INFO [2020-03-19 09:50:25.56]: ----------------------------------- INFO [2020-03-19 09:50:25.56]: --- Step: clean_build_artifacts --- INFO [2020-03-19 09:50:25.56]: ----------------------------------- INFO [2020-03-19 09:50:25.56]: Cleaned up build artifacts 🐙 WARN [2020-03-19 09:50:25.56]: Fail? with 'native_ui_test_newest' Exception You must pass at least one result_bundle_path WARN [2020-03-19 09:50:25.56]: Lane Context: INFO [2020-03-19 09:50:25.56]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"native_ui_test_newest"} ERROR [2020-03-19 09:50:25.56]: You must pass at least one result_bundle_path INFO [2020-03-19 09:50:25.56]: Successfully generated documentation at path '/Users/user/iOS/TestProject/fastlane/README.md'

+------+-----------------------+-------------+ | fastlane summary | +------+-----------------------+-------------+ | Step | Action | Time (in s) | +------+-----------------------+-------------+ | 1 | Verifying fastlane | 0 | | | version | | | 2 | default_platform | 0 | | 3 | Verifying fastlane | 0 | | | version | | | 4 | default_platform | 0 | | 5 | import_from_git | 2 | | 6 | xcversion | 0 | | 7 | clear_derived_data | 3 | | 8 | cocoapods | 5 | | 9 | cd .. && | 46 | | | ./.autogen.sh | | | 10 | multi_scan | 497 | | 💥 | xchtmlreport | 0 | | 12 | clean_build_artifacts | 0 | +------+-----------------------+-------------+

DEBUG [2020-03-19 09:50:25.58]: All plugins are up to date ERROR [2020-03-19 09:50:25.58]: fastlane finished with errors DEBUG [2020-03-19 09:50:25.58]: All plugins are up to date

#######################################################################

fastlane 2.143.0 is available. You are on 2.141.0.

You should use the latest version.

Please update using bundle update fastlane.

To see what's new, open https://github.com/fastlane/fastlane/releases.

####################################################################### bundler: failed to load command: fastlane (/Users/user/.rbenv/versions/2.5.0/bin/fastlane) FastlaneCore::Interface::FastlaneError: [!] You must pass at least one result_bundle_path`

lyndsey-ferguson commented 4 years ago

A couple of things:

  1. there is something seriously wrong, there is a lot of information missing that I cannot account for. I can tell that these tests are found:
ChallengeUITest/testCanCheckChallengeModule
AnalyticsUiTests/testCanCheckOnboardingAnalytics
LocalizationTests/testCanCheckFoodTabLocalization
LocalizationTests/testCanCheckTodayTabLocalization
LocalizationTests/testCanCheckProfileTabLocalization
LocalizationTests/testCanCheckTrainingsTabLocalization
LocalizationTests/testCanCheckOnlySubscriptionScreensLocalization
LocalizationTests/testCanCheckThatChallengeTabNotExistForLocalization
LocalizationTests/testCanCheckThatCommunityItemNotExistInProfile
LocalizationUpload/testCanPassOnboardingAndAnalyzeLocalizations

But then all the logs that would normally happen are missing until this:

DEBUG [2020-03-19 09:50:25.55]: Results for each test run: []

I cannot do anything without this information. I don't know why the tests didn't get through. I don't see the calls to scan, I don't see the call to xcodebuild, etc. Are you certain that the logs are not being shunted to some other file, or some other entity is removing useful information from the log?

  1. the error itself is happening in clean_build_artifacts. You can tell by observing that the fastlane is at that stage in the log:
    INFO [2020-03-19 09:50:25.56]: -----------------------------------
    INFO [2020-03-19 09:50:25.56]: --- Step: clean_build_artifacts ---
    INFO [2020-03-19 09:50:25.56]: -----------------------------------
    INFO [2020-03-19 09:50:25.56]: Cleaned up build artifacts 🐙
    WARN [2020-03-19 09:50:25.56]: Fail? with 'native_ui_test_newest' Exception You must pass at least one result_bundle_path
alexnot95 commented 4 years ago

Hi @lyndsey-ferguson I think we can close this issue and merge the fix, because looks like the problem on our internal side, thanks a lot for your help :)

lyndsey-ferguson commented 4 years ago

Fixed in v3.10.0