I am having permissions issues while trying to run scan with CircleCI. Any help would be appreciated!
test:
macos:
xcode: "11.4"
working_directory: /Users/distiller/project
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: test
shell: /bin/bash --login -o pipefail
steps:
- checkout
- restore_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
- run: bundle check || bundle install --path vendor/bundle
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run:
name: fastlane
command: bundle exec fastlane $FASTLANE_LANE
- store_artifacts:
path: output
- store_test_results:
path: output/scan
Fastfile looks sort of like
platform :ios do
before_all do
setup_circle_ci
end
lane :test do
workspace = "./PxApple.xcworkspace"
run_tests(workspace: workspace, output_directory: "./fastlane/test_output", scheme: "PxNetwork")
end
# Gemfile
source "https://rubygems.org"
gem 'fastlane'
[⠋] 🚀 [⠙] 🚀 [⠹] 🚀 [⠸] 🚀 [⠼] 🚀 [⠴] 🚀 [⠦] 🚀 [⠧] 🚀 [⠇] 🚀 [✔] 🚀
[20:26:39]: Sending anonymous analytics information
[20:26:39]: Learn more at https://docs.fastlane.tools/#metrics
[20:26:39]: No personal or sensitive data is sent.
[20:26:39]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[20:26:39]: Generating fastlane environment output, this might take a few seconds...
<details><summary>🚫 fastlane environment 🚫</summary>
### Stack
| Key | Value |
| --------------------------- | -------------------------------------------------------------- |
| OS | 10.15.4 |
| Ruby | 2.6.3 |
| Bundler? | true |
| Git | git version 2.26.1 |
| Installation Source | ~/project/vendor/bundle/ruby/2.6.0/bin/fastlane |
| Host | Mac OS X 10.15.4 (19E266) |
| Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib |
| OpenSSL Version | LibreSSL 2.8.3 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode-11.4.1.app/Contents/Developer/ |
| Xcode Version | 11.4.1 |
### System Locale
| Error |
| --------------------------- |
| No Locale with UTF8 found 🚫 |
### fastlane files:
<details><summary>`./fastlane/Fastfile`</summary>
```ruby
default_platform(:ios)
platform :ios do
before_all do
setup_circle_ci
end
lane :lint do
swiftlint(
mode: :lint,
config_file: "fastlane/.swiftlint",
raise_if_swiftlint_error: true,
ignore_exit_status: false
)
end
lane :correct do
swiftlint(
mode: :autocorrect,
config_file: "fastlane/.swiftlint",
raise_if_swiftlint_error: true,
ignore_exit_status: false
)
end
lane :test do
workspace = "./PxApple.xcworkspace"
run_tests(workspace: workspace, output_directory: "./fastlane/test_output", scheme: "PxNetwork")
end
lane :buildsdkdemoapps do
codesigning_identity = ""
skip_package_ipa = "true"
skip_package_pkg = "true"
skip_archive = "true"
workspace = "./PxApple.xcworkspace"
gym(codesigning_identity: codesigning_identity, skip_archive: skip_archive, skip_package_ipa: skip_package_ipa, skip_package_pkg: skip_package_pkg, skip_codesigning: "true", workspace: workspace, scheme: "Proxy ID")
gym(codesigning_identity: codesigning_identity, skip_archive: skip_archive, skip_package_ipa: skip_package_ipa, skip_package_pkg: skip_package_pkg, skip_codesigning: "true", workspace: workspace, scheme: "ProxyCheckIn")
end
end
[20:26:39]: Take notice that this output may contain sensitive information, or simply information that you don't want to make public.
[20:26:39]: Open https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅
```
Looking for related GitHub issues on fastlane/fastlane...
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.6.0/bin/fastlane)
Errno::EPERM: [!] Operation not permitted - //System/Volumes/Data/private/var/db/lockdown