papyrus icon indicating copy to clipboard operation
papyrus copied to clipboard

Xcode Cloud trust issue

Open dev4jam opened this issue 1 year ago • 2 comments

Xcode Cloud complains that "Target 'Papyrus' must be enabled before it can be used." and gives up. Haven't seen this issue with other Swift packages. Any fixes?

dev4jam avatar Jul 26 '24 06:07 dev4jam

@dev4jam You have to enable the macro plugin of Papyrus. I don't use Xcode Cloud myself, but after some quick searching, you could try the solution in the following link: https://stackoverflow.com/questions/77267883/how-do-i-trust-a-swift-macro-target-for-xcode-cloud-builds

kevin-kp avatar Jul 26 '24 06:07 kevin-kp

Solved by adding into ci_post_clone.sh:

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

But preferred to keep CI/CD pipeline clean.

dev4jam avatar Jul 29 '24 01:07 dev4jam