error: could not build Objective-C module 'Quick'

1.2k views Asked by At

Running my Quick and Nimble tests in Xcode and I am now getting this error out of the blue.

Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Quick.build/module.modulemap:2:19: error: umbrella header 'Quick-umbrella.h' not found
  umbrella header "Quick-umbrella.h"
                  ^

error: could not build Objective-C module 'Quick'

How can I fix this?

2

There are 2 answers

0
SRed On

Issue seemed to be the fact that my M1 doesn't support iOS versions lower than 14. I did not have the correct one selected without realizing and I spent a lot of time trying to figure out why Quick testing wasn't working but my XCTests were.

2
zeytin On
  • Quit Xcode

  • Clear your derived data. You can find your derived data in here ~/Library/Developer/Xcode/DerivedData

  • Clean your project (⌘+Shift+K)

  • Build your project (⌘+B)

Or ;


Another way can fix your issue :

  • Go to Xcode Preferences

  • Choose Test

  • Check the Gather coverage tick as indicated the ss :

enter image description here