pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.

Home Page:https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode Cloud: Snapshot references don't match, visually the same. Locally passing

Alvin-Robert-Lee opened this issue · comments

Has anyone experienced snapshots failing to match their reference on Xcode Cloud even though they match locally?

After fixing the issue where snapshots weren't being copied over, I still have some snapshots failing to match their reference image snapshot, even though they are the same visually. I've tried lowering the precision down to 0.98 and it still fails.

I've confirmed that the simulator iPhone and iOS version match my local environment. Xcode version also matches.

The only difference I could find is that the macOS version on Xcode Cloud is 13.4.1, and I'm on 13.4.

Seems like Xcode Cloud runners have Intel CPUs, which cause snapshots to diff+fail if you generated your snapshots on a machine running Apple Silicon.