Add instructions for disabling Xcode package validation (#4751)

This commit is contained in:
David Davies-Payne 2023-03-01 08:40:23 +13:00 committed by GitHub
parent d73d87ac97
commit a71f588637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -200,7 +200,7 @@ there is currently no way to pass any additional options to the SwiftLint execut
#### Xcode #### Xcode
You can integrate SwiftLint as a Xcode Build Tool Plug-in if you're working You can integrate SwiftLint as an Xcode Build Tool Plug-in if you're working
with a project in Xcode. with a project in Xcode.
Add SwiftLint as a package dependency to your project without linking any of the Add SwiftLint as a package dependency to your project without linking any of the
@ -212,6 +212,15 @@ Select `SwiftLintPlugin` from the list and add it to the project.
![](assets/select-swiftlint-plugin.png) ![](assets/select-swiftlint-plugin.png)
For unattended use (e.g. on CI), you can disable the package validation dialog by
* individually passing `-skipPackagePluginValidation` to `xcodebuild` or
* globally setting `defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES`
for that user.
_Note: This implicitly trusts all Xcode package plugins and bypasses Xcode's package validation
dialogs, which has security implications._
#### Swift Package #### Swift Package
You can integrate SwiftLint as a Swift Package Manager Plug-in if you're working with You can integrate SwiftLint as a Swift Package Manager Plug-in if you're working with