fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run_tests failing with exit status: 65, asking to use UTF-8

RLEE0731 opened this issue · comments

New Issue Checklist

Issue Description

Using run_tests to generate xcresult file, fastlane fails with the following error:

[11:36:57]: Exit status: 65
[11:36:57]: Your shell environment is not correctly configured
[11:36:57]: Instead of UTF-8 your shell uses US-ASCII
[11:36:57]: Please add the following to your '~/.bashrc':
[11:36:57]:
[11:36:57]:        export LANG=en_US.UTF-8
[11:36:57]:        export LANGUAGE=en_US.UTF-8
[11:36:57]:        export LC_ALL=en_US.UTF-8
[11:36:57]:
[11:36:57]: You'll have to restart your shell session after updating the file.
[11:36:57]: If you are using zshell or another shell, make sure to edit the correct bash file.
[11:36:57]: For more information visit this stackoverflow answer:
[11:36:57]: https://stackoverflow.com/a/17031697/445598

I've done added the export as suggested and restarted the shell session, but the error stays the same.

Command executed
run_tests(
      configuration: 'Debug',
      workspace: <redacted>,
      scheme: <redacted>,
      device: 'iPhone 11',
      sdk: 'iphonesimulator',
      result_bundle: true,
      testplan: <redacted>,
      force_quit_simulator: true,
      reset_simulator: true,
      include_simulator_logs: true,
      fail_build: false,
      output_style: 'raw',
      skip_build: true,
      clean: true,
      number_of_retries: 2,
    )
Complete output when running fastlane, including the stack trace and command used
``` [✔] 🚀 +-------------------------------------------+---------+----------------------------------------------+ | Used plugins | +-------------------------------------------+---------+----------------------------------------------+ | Plugin | Version | Action | +-------------------------------------------+---------+----------------------------------------------+ | fastlane-plugin-xcconfig | 2.0.0 | update_xcconfig_value, set_xcconfig_value, | | | | get_xcconfig_value | | fastlane-plugin-lizard | 1.3.3 | lizard | | fastlane-plugin-firebase_app_distribution | 0.3.4 | firebase_app_distribution_login, | | | | firebase_app_distribution_add_testers, | | | | firebase_app_distribution_get_udids, | | | | firebase_app_distribution, | | | | firebase_app_distribution_get_latest_releas | | | | e, firebase_app_distribution_remove_testers | +-------------------------------------------+---------+----------------------------------------------+

13:14:52: --- Step: default_platform ---
13:14:52: ------------------------------
13:14:52: Driving the lane 'ios functional_test' 🚀
13:14:52: -----------------------------
13:14:52: --- Step: update_fastlane ---
13:14:52: -----------------------------
13:14:52: Looking for updates for fastlane...
[13:14:57]: Nothing to update ✅
[13:14:57]: -----------------------
[13:14:57]: --- Step: run_tests ---
[13:14:57]: -----------------------
[13:14:57]: Resolving Swift Package Manager dependencies...
[13:14:57]: $ xcodebuild -resolvePackageDependencies -workspace .xcworkspace -scheme -configuration Debug
[13:14:58]: ▸ 2022-06-14 13:14:58.221 xcodebuild[26480:1015025] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[13:14:58]: ▸ 2022-06-14 13:14:58.222 xcodebuild[26480:1015025] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[13:14:58]: ▸ Command line invocation:
[13:14:58]: ▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace .xcworkspace -scheme -configuration Debug
[13:14:58]: ▸ User defaults from command line:
[13:14:58]: ▸ IDEPackageSupportUseBuiltinSCM = YES
[13:15:00]: ▸ Resolve Package Graph
[13:15:06]: ▸ Resolved source packages:
...
Test Case '-[]' passed (38.314 seconds).
Test Suite '' passed at 2022-06-14 11:36:38.075.
Executed 1 test, with 0 failures (0 unexpected) in 38.314 (38.315) seconds
Test Suite '.xctest' failed at 2022-06-14 11:36:38.075.
Executed 21 tests, with 3 failures (0 unexpected) in 464.270 (464.287) seconds
Test Suite '' failed at 2022-06-14 11:36:38.076.
Executed 21 tests, with 3 failures (0 unexpected) in 464.270 (464.289) seconds
2022-06-14 11:36:50.818 xcodebuild[73825:780835] [MT] IDETestOperationsObserverDebug: 489.320 elapsed -- Testing started completed.
2022-06-14 11:36:50.818 xcodebuild[73825:780835] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2022-06-14 11:36:50.818 xcodebuild[73825:780835] [MT] IDETestOperationsObserverDebug: 489.320 sec, +489.320 sec -- end
Failing tests:
UITests:
()

** TEST FAILED **
[14:14:07]: Exit status: 65
[14:14:07]: Your shell environment is not correctly configured
[14:14:07]: Instead of UTF-8 your shell uses US-ASCII
[14:14:07]: Please add the following to your '~/.bashrc':
[14:14:07]:
[14:14:07]: export LANG=en_US.UTF-8
[14:14:07]: export LANGUAGE=en_US.UTF-8
[14:14:07]: export LC_ALL=en_US.UTF-8
[14:14:07]:
[14:14:07]: You'll have to restart your shell session after updating the file.
[14:14:07]: If you are using zshell or another shell, make sure to edit the correct bash file.
[14:14:07]: For more information visit this stackoverflow answer:
[14:14:07]: https://stackoverflow.com/a/17031697/445598
+------------------------------+----------------------------------------------------------------------+
| Lane Context |
+------------------------------+----------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios functional_test |
| SCAN_GENERATED_XCRESULT_PATH | //fastlane/test_output/ |
| | .xcresult |
| SCAN_DERIVED_DATA_PATH | //Developer/Xcode/DerivedData/hjbowovpitedf |
| | odxnkpgytbrejbj |
| SCAN_GENERATED_PLIST_FILES | [] |
| SCAN_GENERATED_PLIST_FILE | |
+------------------------------+----------------------------------------------------------------------+
[14:14:10]: Error building/testing the application. See the log above.

+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 2 | update_fastlane | 3 |
| 💥 | run_tests | 1551 |
+------+------------------+-------------+

[14:14:10]: fastlane finished with errors

[!] Error building/testing the application. See the log above.
[14:14:10]: Shutting down 729BF284-E3C3-445E-945F-E28E8D3B675E

</details>

### Environment
<details><summary>✅ fastlane environment ✅</summary>

### Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 12.3.1                                      |
| Ruby                        | 2.7.2                                       |
| Bundler?                    | true                                        |
| Git                         | git version 2.33.0                          |
| Installation Source         | ~/.gem/bin/fastlane                         |
| Host                        | macOS 12.3.1 (21E258)                       |
| Ruby Lib Dir                | ~/.rbenv/versions/2.7.2/lib                 |
| OpenSSL Version             | OpenSSL 1.1.1i  8 Dec 2020                  |
| Is contained                | false                                       |
| Is homebrew                 | false                                       |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 13.4.1                                      |
| Swift Version               | 5.6.1                                       |


### System Locale

| Variable | Value       |   |
| -------- | ----------- | - |
| LANG     | en_US.UTF-8 | ✅ |
| LC_ALL   |             |   |
| LANGUAGE |             |   |


### fastlane files:

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

```ruby
# Uncomment the line if you want fastlane to automatically update itself
before_all do |lane, options|
  update_fastlane
end

ENV["LANG"] = "en_US.UTF-8"
ENV["LANGUAGE"] = "en_US.UTF-8"
ENV["LC_ALL"] = "en_US.UTF-8"

fastlane_require 'spaceship'

default_platform(:ios)
  desc "Run Functional tests"
  lane :functional_test do |options|    
    run_tests(
      configuration: 'Debug',
      workspace: '<redacted>.xcworkspace',
      scheme: '<redacted>',
      device: 'iPhone 11',
      sdk: 'iphonesimulator',
      result_bundle: true,
      testplan: '<redacted>',
      force_quit_simulator: true,
      reset_simulator: true,
      include_simulator_logs: true,
      fail_build: false,
      output_style: 'raw',
      skip_build: true,
      clean: true,
      number_of_retries: 2,
    )
  end
  # <redacted>
end

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.206.2 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-xcconfig 2.0.0 ✅ Up-To-Date
fastlane-plugin-lizard 1.3.3 ✅ Up-To-Date
fastlane-plugin-firebase_app_distribution 0.3.4 ✅ Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.4.0
bundler 2.1.4
uri 0.10.0
rake 13.0.6
rexml 3.2.5
CFPropertyList 3.0.5
concurrent-ruby 1.1.10
i18n 1.10.0
minitest 5.15.0
tzinfo 2.0.4
activesupport 7.0.2.3
public_suffix 4.0.7
addressable 2.8.0
artifactory 3.0.15
atomos 0.1.3
aws-eventstream 1.2.0
aws-partitions 1.598.0
aws-sigv4 1.5.0
jmespath 1.6.1
aws-sdk-core 3.131.1
aws-sdk-kms 1.57.0
aws-sdk-s3 1.114.0
babosa 1.0.4
claide 1.1.0
clamp 1.3.2
coderay 1.1.3
colored 1.2
colored2 3.1.2
highline 2.0.3
commander 4.6.0
declarative 0.0.20
digest-crc 0.6.4
unf_ext 0.0.8.2
unf 0.1.4
domain_name 0.5.20190701
dotenv 2.7.6
emoji_regex 3.2.3
excon 0.92.3
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
multipart-post 2.0.0
faraday-multipart 1.0.4
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.0
http-cookie 1.0.5
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.2.6
gh_inspector 1.1.3
jwt 2.4.1
memoist 0.16.2
multi_json 1.15.0
os 1.1.4
signet 0.16.1
googleauth 1.1.3
httpclient 2.8.3
mini_mime 1.1.2
trailblazer-option 0.1.2
uber 0.1.0
representable 3.2.0
retriable 3.1.2
webrick 1.7.0
google-apis-core 0.5.0
google-apis-androidpublisher_v3 0.22.0
google-apis-playcustomapp_v1 0.8.0
google-apis-iamcredentials_v1 0.11.0
google-apis-storage_v1 0.15.0
google-cloud-env 1.6.0
google-cloud-errors 1.2.0
google-cloud-core 1.6.0
google-cloud-storage 1.36.2
json 2.6.2
mini_magick 4.11.0
naturally 2.2.1
optparse 0.1.1
plist 3.6.0
rubyzip 2.3.2
security 0.1.3
simctl 1.6.8
terminal-notifier 2.0.0
unicode-display_width 1.8.0
terminal-table 1.8.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
nanaimo 0.3.0
xcodeproj 1.21.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1
fastlane-plugin-firebase_app_distribution 0.3.4
method_source 1.0.0
pry 0.14.1
fastlane-plugin-lizard 1.3.3
fastlane-plugin-xcconfig 2.0.0
mini_portile2 2.8.0
racc 1.6.0
nokogiri 1.13.4
slather 2.7.2

generated on: 2022-06-14

ezoic increase your site revenue