Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I trust a swift macro target for Xcode Cloud builds?

I just added my first Xcode 15, Swift 5.9 macro from an open source package that I'm referencing via Swift Package Manager. The first time I compiled locally, I had to trust the macro's package via a dialog box, which is fine for a local build. However, now my app doesn't build on Xcode Cloud, with the error "Target must be enabled before it can be used."

How do I tell Xcode Cloud to trust the macro's target?

like image 781
Jordan Wood Avatar asked Dec 10 '25 18:12

Jordan Wood


1 Answers

I ran into same problem, and quickly discovered an additional defaults key that bypasses macro validation (same as -skipMacroValidation xcodebuild command line option):

defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
like image 150
slavikus Avatar answered Dec 14 '25 17:12

slavikus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!