spotify / XCRemoteCache

Other
838 stars 52 forks source link

Building with code coverage cache miss #31

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Code coverage leads to 100% cache miss.

Fingerprint generator takes into consideration raw CLANG_PROFILE_DATA_DIRECTORY, which is an absolute path. Instead, that path should be first redacted (like $(BUILT_PRODUCTS_DIR)/Profile) before being taken into hashing.

See https://github.com/spotify/XCRemoteCache/blob/bf90d518f42aaa67df71332a202faeb5ae29f9b9/Sources/XCRemoteCache/Fingerprint/EnvironmentFingerprint.swift#L25