Operation not permitted - /System/Volumes/Data/private/var/db/lockdown
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- ios, ruby
- Ambito
- devtools, testing-qa
Direzione di ricerca
Start with profdata_coverage_dir in lib/slather/project.rb at the reported line 198, then trace how find_binary_files chooses coverage paths. Reproduce with the supplied Xcode 12 and macOS 10.15 setup if available; done when Slather handles inaccessible system paths without failing and the coverage report is generated for the sample project.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This error occurred on Xcode 12 in a fairly empty sample project with only the default unit tests (no code coverage). I was using this project to test my fastlane file and CI/CD setup in Azure DevOps Microsoft hosted Mac agent (10.15)
My fastlane lane:
lane :test do |options|
parameter_validation(options)
project = options[:project_name]
scheme = project + (options[:is_library] ? "Sample" : "")
scan(
scheme: scheme,
output_directory: "./sonar-reports",
output_types: "html,junit,json-compilation-database",
output_files: "TEST-report.html,TEST-report.xml,compile_commands.json",
code_coverage: true,
clean: true,
skip_build: true,
derived_data_path: "Build"
)
coverage_files_to_ignore = [
'../../*',
'Pods/*',
'*Sample/*',
'*Tests.m',
]
swiftlint(
output_file: "./sonar-reports/swiftlint.json",
reporter: "json",
ignore_exit_status: true,
config_file: '.swiftlint.yml'
)
slather(
scheme: scheme,
sonarqube_xml: true,
output_directory: "sonar-reports",
proj: project + ".xcodeproj",
workspace: project + ".xcworkspace",
ignore: coverage_files_to_ignore,
build_directory: "/"
)
end
[07:41:51]: $ slather coverage --sonarqube-xml --build-directory / --output-directory sonar-reports --ignore ../../\* --ignore Pods/\* --ignore \*Sample/\* --ignore \*Tests.m --scheme SampleSwift --workspace SampleSwift.xcworkspace SampleSwift.xcodeproj
[07:41:53]: ▸ Slathering...
[07:43:12]: ▸ /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:198:in `[]': Operation not permitted - /System/Volumes/Data/private/var/db/lockdown (Errno::EPERM)
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:198:in `profdata_coverage_dir'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:498:in `find_binary_files'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:437:in `configure_binary_file'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/project.rb:317:in `configure'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/lib/slather/command/coverage_command.rb:59:in `execute'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/gems/slather-2.6.1/bin/slather:17:in `<top (required)>'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/bin/slather:23:in `load'
[07:43:12]: ▸ from /usr/local/lib/ruby/gems/2.7.0/bin/slather:23:in `<main>'
[07:43:12]: ▸ Operation not permitted - /System/Volumes/Data/private/var/db/lockdown
[07:43:12]: ▸ Are you sure your project is generating coverage? Make sure you enable code coverage in the Test section of your Xcode scheme.
[07:43:12]: ▸ Did you specify your Xcode scheme? (--scheme or 'scheme' in .slather.yml)
[07:43:12]: ▸ If you're using a workspace, did you specify it? (--workspace or 'workspace' in .slather.yml)
[07:43:12]: ▸ If you use a different Xcode configuration, did you specify it? (--configuration or 'configuration' in .slather.yml)
+----------------------------+----------+
| Lane Context |
+----------------------------+----------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios test |
| SCAN_DERIVED_DATA_PATH | Build |
| SCAN_GENERATED_PLIST_FILES | [] |
| SCAN_GENERATED_PLIST_FILE | |
+----------------------------+----------+
- Lingua principale
- Ruby
- Stelle
- 1.6k
- Fork
- 239
- Merge medio
- 1g 9h
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SlatherOrg/slather
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SlatherOrg/slather#582 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
SlatherOrg/slather#580 · 9 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 56/100
SlatherOrg/slather#578 · 3 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
SlatherOrg/slather#577 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
SlatherOrg/slather#576 · 2 commenti ·
Tutte le issue di SlatherOrg/slather
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Homebrew/homebrew-cask#295450 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
TheOdinProject/curriculum#31479 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
taskcluster/taskcluster#9284 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Class option relations are appended to the command on every runForse già presa @auraseb l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100