4

Getting following error when running builds having any SPM plugin like SwiftGenPlugin:

The following build commands failed:
    Validate plug-in “SwiftGenPlugin” in package “swiftgenplugin”

Build link: https://app.travis-ci.com/github/mukesh-mt/SwiftGenTest/jobs/592013507

Sample project: https://github.com/mukesh-mt/SwiftGenTest

Mukesh
  • 2,792
  • 15
  • 32

1 Answers1

3

I was able to solve this issue by using -skipPackagePluginValidation option in xcodebuild.

With fastlane you can pass it with --xcargs "-skipPackagePluginValidation" option in gym command

See this build https://app.travis-ci.com/github/mukesh-mt/SwiftGenTest/builds/259435024

Mukesh
  • 2,792
  • 15
  • 32
  • I use Bitrise, before executing Fastlane step, I invoke a script described here (https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/7) – azun Jan 13 '23 at 10:36