2

We have an iOS project that, when built with XCode 12.5, will error with something similar the following:

Module file '/Users/revolt/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/J3JDK8UPXZ4K/Foundation-39SXNSRMYWPGZ.pcm' is out of date and needs to be rebuilt: signature mismatch

This does not happen on the first build, but after the cache has been generated and can be 'solved' by deleting the DerivedData folder.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
JimmyDeemo
  • 313
  • 1
  • 15

1 Answers1

2

This is a bug in XCode. It doesn't appear to happen in the XCode 13 beta, at the time of writing. Workaround is to "...disable the global module index by adding -fno-modules-global-index to OTHER_CFLAGS.".

JimmyDeemo
  • 313
  • 1
  • 15
  • Hi, I am using XCode 13.2 and still reproduce this bug. Also setting -fno-modules-global-index to OTHER_CFLAGS do not resolve it. Did you manage to fix it just by upgrading XCode? – ivayle Jan 14 '22 at 09:25
  • Yes, but I probably cleared out the DerivedData too. I no longer see this issue on XCode 13.1. Not tried 13.2 yet. – JimmyDeemo Jan 14 '22 at 11:51
  • 1
    This is still an issue in Xcode 14.2, particularly when using Firebase. Damn annoying. – Cliff Ribaudo Jan 15 '23 at 21:16