Operation not permitted - /System/Volumes/Data/private/var/db/lockdown
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, ruby
- Lĩnh vực
- devtools, testing-qa
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 | |
+----------------------------+----------+
- Ngôn ngữ chính
- Ruby
- Star
- 1.6k
- Fork
- 239
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SlatherOrg/slather
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
SlatherOrg/slather#588 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
SlatherOrg/slather#582 · 1 bình luận ·
-
is xcode 26 already supported?Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
SlatherOrg/slather#580 · 9 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 56/100
SlatherOrg/slather#578 · 3 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
SlatherOrg/slather#577 ·
Tất cả issue của SlatherOrg/slather
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
riverqueue/river#1576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
respond_to? on a poly receiver answers true for a program class's private or protected methodĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue in config.yaml fileĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
TheOdinProject/curriculum#31512 ·
Maintainer thường phản hồi trong vòng 1 ngày