Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] Could not find option 'workspace' in the list of available options: #191

Open
mockaccount-cs opened this issue Feb 25, 2021 · 2 comments

Comments

@mockaccount-cs
Copy link

mockaccount-cs commented Feb 25, 2021

Hi. I am running xcov within GitHub Actions right after my test step and I keep seeing the error [!] Could not find option 'workspace' in the list of available options:

  1. I ran this command:
    fastlane scan --scheme "SchemeTests" --code_coverage true --skip_build true --output_directory "test_output"
  2. It was successful
  3. Then I ran this:
    fastlane run xcov project:"project-name.xcodeproj" scheme:"SchemeTests" output_directory:"test_output"
    Step failed with error: [!] Could not find option 'workspace' in the list of available options:
  4. So, I created a workspace from my xcode project and ran this:
    fastlane run xcov workspace:"project-name.workspace" scheme:"SchemeTests" output_directory:"test_output"

⚠️
I still received the error : [!] Could not find option 'workspace' in the list of available options:

Here is the full output, I have installed the latest fastlane

Run fastlane run xcov project:"project-name.xcodeproj" scheme:"SchemeTests" output_directory:"test_output"
[18:03:21]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[18:03:22]: ------------------
[18:03:22]: --- Step: xcov ---
[18:03:22]: ------------------
[18:03:23]: Installing Ruby gem 'xcov'...
[18:03:23]: Found gem "danger-xcov" instead of the required name "xcov"
[18:03:30]: Successfully installed 'xcov'


[!] Could not find option 'workspace' in the list of available options: 
#######################################################################
# fastlane 2.176.0 is available. You are on 2.175.0.
# You should use the latest version.
# Please update using `gem install fastlane`.
#######################################################################
Error: Process completed with exit code 1.

fastlane env output from within a GH action just before the test step:

✅ fastlane environment ✅

Stack

Key Value
OS 10.15.7
Ruby 2.7.2
Bundler? false
Git git version 2.30.1
Installation Source ~/hostedtoolcache/Ruby/2.7.2/x64/bin/fastlane
Host Mac OS X 10.15.7 (19H512)
Ruby Lib Dir ~/hostedtoolcache/Ruby/2.7.2/x64/lib
OpenSSL Version OpenSSL 1.1.1h 22 Sep 2020
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode_12.4.app/Contents/Developer/
Xcode Version 12.4

System Locale

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

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.4.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.3
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.19.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.79.0
faraday-net_http 1.0.1
ruby2_keywords 0.0.4
faraday 1.3.0
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.2
gh_inspector 1.1.3
json 2.3.0
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
simctl 1.6.8
jwt 2.2.2
uber 0.1.0
declarative 0.0.20
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
multi_json 1.15.0
signet 0.14.1
memoist 0.16.2
os 1.1.1
googleauth 0.15.1
httpclient 2.8.3
google-api-client 0.38.0
google-cloud-env 1.4.0
google-cloud-errors 1.0.1
google-cloud-core 1.5.0
rexml 3.2.3
webrick 1.6.0
google-apis-core 0.2.1
google-apis-iamcredentials_v1 0.1.0
google-apis-storage_v1 0.2.0
rake 13.0.1
digest-crc 0.6.3
google-cloud-storage 1.30.0
emoji_regex 3.2.2
jmespath 1.4.0
aws-partitions 1.429.0
aws-eventstream 1.1.0
aws-sigv4 1.2.2
aws-sdk-core 3.112.0
aws-sdk-kms 1.42.0
aws-sdk-s3 1.88.1
uri 0.10.0
bundler 2.2.11
forwardable 1.3.1
logger 1.4.2
cgi 0.1.0
date 3.0.0
timeout 0.1.0
stringio 0.1.0
zlib 1.1.0
ipaddr 1.2.2
openssl 2.1.2
ostruct 0.2.0
strscan 1.0.3
delegate 0.1.0
fileutils 1.4.1
open3 0.1.0
singleton 0.1.0
yaml 0.1.0
psych 3.1.0
mutex_m 0.1.0

generated on: 2021-02-25

@sseen
Copy link

sseen commented Sep 19, 2021

Add bundle update in your actions before you execute the xcov command, hope useful.

@benben2019
Copy link

@sseen worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants