R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

Can't validate build tool plug-in when running CI/CD

Open gitIkerKristian opened this issue 4 years ago • 2 comments

I have issue with R.swift 7.0.1 when I try to use SPM on Bitrise, I have no idea how to validate RswfitGenerateInternalResources so my builds keep failing...

Do you guys have some suggestion what to do?

gitIkerKristian avatar Dec 01 '22 10:12 gitIkerKristian

Xcode requires the user the clik “Trust” before running the plugin (you may have seen the UI pop up).

On bitrise, you can pass -skipPackagePluginValidation to xcodebuild to skip the validation. Obviously, this is a security risk, but if you check the plugins before uploading to bitrise, it should be fine.

See also this discussion on the Swift forums: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305

If you use Fastlane; add it to xcargs to build_app:

build_app(
  ...
  xcargs: "-skipPackagePluginValidation"
  ...
)

tomlokhorst avatar Dec 01 '22 10:12 tomlokhorst

Thank you, this solved my issue.

gitIkerKristian avatar Dec 01 '22 20:12 gitIkerKristian