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

No scheme named 'MyScheme' found (Xcode 15.4) #569

Open
mateomisas opened this issue Aug 17, 2024 · 4 comments
Open

No scheme named 'MyScheme' found (Xcode 15.4) #569

mateomisas opened this issue Aug 17, 2024 · 4 comments

Comments

@mateomisas
Copy link

Hi, we are currently trying to generate reports with Slather using macOS 14 and Xcode 15.4. We added ruby and installed slather. This is our yml in our root directory:

coverage_service: gutter_json
xcodeproj: ./MyProject.xcodeproj
scheme: MyScheme
build_directory: ./Build
configuration: TestDebug
workspace: ./MyWorkspace.xcworkspace
verbose: true
output_directory: slather-report
ignore:
  - Pods/*
  - Carthage/*

We then execute the command slather coverage in our CI. Also, we plan to upload the report to Codecov.
But when trying this, it gives us this error always:

/Users/runner/hostedtoolcache/Ruby/3.0.7/arm64/lib/ruby/gems/3.0.0/gems/slather-2.8.3/lib/slather/project.rb:517:in `find_binary_files': No scheme named 'MyScheme' found in /Users/runner/work/ios-app/ios-app/MyProject.xcodeproj (StandardError)

I'm sure the scheme exists and its being shared, and I'm not sure what else to do. Thanks in advance.

@jarrodlombardo
Copy link

I don't know if they're causing this issue or not, but remove the ./ from the front of the filenames. The slather.yml doesn't need that.

@mateomisas
Copy link
Author

I don't know if they're causing this issue or not, but remove the ./ from the front of the filenames. The slather.yml doesn't need that.

Yeah I know, but thanks

@jarrodlombardo
Copy link

They might be messing up finding something. Not sure.
Is the ios-app/ios-app part of the path correct? The double folder name looks unusual, but I don't know your actual folder structure.

@grantespo
Copy link

grantespo commented Aug 20, 2024

This error was occuring for me in CI.

I had to remove these from my gitignore and re-commit:

*.xcodeproj/xcshareddata/
*.xcuserdatad/
*.xcuserdata/

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