Skip to content

Commit

Permalink
Document the changed default value for sandboxing (#5219)
Browse files Browse the repository at this point in the history
  • Loading branch information
technocidal authored Sep 15, 2023
1 parent 347af1c commit 75adbac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ Insert the following as the script:

![](https://raw.githubusercontent.com/realm/SwiftLint/main/assets/runscript.png)

Xcode 15 made a significant change by setting the default value of the `ENABLE_USER_SCRIPT_SANDBOXING` Build Setting from `NO` to `YES`.
As a result, SwiftLint encounters an error related to missing file permissions,
which typically manifests as follows: `error: Sandbox: swiftlint(19427) deny(1) file-read-data.`

To resolve this issue, it is necessary to manually set the `ENABLE_USER_SCRIPT_SANDBOXING` setting to `NO` for the specific target that SwiftLint is being configured for.

If you installed SwiftLint via Homebrew on Apple Silicon, you might experience this warning:

> warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint
Expand Down

0 comments on commit 75adbac

Please sign in to comment.