SlatherOrg / slather

Generate test coverage reports for Xcode projects & hook it into CI.
MIT License
1.56k stars 238 forks source link

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

Open mateomisas opened 3 months ago

mateomisas commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

This error was occuring for me in CI.

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

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