Skip to content

Conversation

Rumiya
Copy link

@Rumiya Rumiya commented Jul 1, 2025

When running in a CI setup using xcodebuild build-for-testing / xcodebuild test-without-running, the snapshot folder inside the test bundle might not be writable and tests fail because FileManager.createDirectory() attempts to create the directory regardless if it exists or not and fails with a permission denied error.

This adds a preflight check and only attempts to create the folder when it doesn't already exist.

@Rumiya Rumiya force-pushed the rumiya/only-create-directory-when-not-present branch from a9876a2 to 8f8114b Compare July 1, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant