3

My GitHub CI was failing with a xcodebuild when I included a swift package that contains some macros. The build with xcodebuild was simply telling me xcodebuild: error: Failed writing xctestrun file: The folder .xctestrun doesn’t exist. and failed. The package resolving worked but the build failed. Locally it is working properly.

2 Answers 2

4

After a very long journey I finally found out:

xcodebuild needs the parameter -skipMacroValidation to work properly.

Obviously locally it was working because I initially enabled the package when adding it to the dependencies.

Sign up to request clarification or add additional context in comments.

Comments

1

Another possibility is to update defaults on the CI machine before build:

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

Taken from https://forums.swift.org/t/is-there-a-way-to-programmatically-allow-trust-the-compiler-plugin-to-run-from-the-command-line/65690/2

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.