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

Xcode cloud issue

Open clopex opened this issue 11 months ago • 2 comments

Hello, Im having error: “RswiftGenerateInternalResources” is disabled when Im trying to create build on XCode Cloud

any idea?

I add both Public and Internal Resources in "Run build tool plugin" in Build Phases

clopex avatar Dec 16 '24 16:12 clopex

I add this script to my project: #!/bin/sh

ci_post_clone.sh

Created by Adis Mulabdic on 10. 1. 2025..

Copyright © . All rights reserved.

defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES

Errors: error: “RswiftGenerateInternalResources” must be enabled before it can be used

“RswiftGenerateInternalResources” is disabled

but still xcode cloud is failing. Any suggestions @tomlokhorst

clopex avatar Jan 11 '25 10:01 clopex

R.swift on Xcode Cloud or any other CI

On your CI server you can't explicitly allow the build plugin to run, so you need to disable plugin validation to be able to build without user interaction:

Run a script on your CI that runs: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES before Xcode starts building. On Xcode Cloud you can add a custom build script in ci_scripts/ci_post_clone.sh with this line that Xcode will run.

whoisronak avatar May 02 '25 00:05 whoisronak