Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 14.3 failed to verify module interface of 'project'

There were a lot of issues when trying to run the app after upgrading Xcode to the latest, 14.3 version.

The one I am facing now is:
failed to verify module interface of 'projectName' due to the errors above; the textual interface may be broken by project issues or a compiler bug
along with No such module Firebase

Edit: Seems like it is not up to Firebase nor any other pod since people are having the same issue for different pods. I have tried these things but no success:

  • updating all pods to the latest version
  • updating Cocoapods to the latest version 1.12.0
  • cleaning build folder and derived data, as always
  • updating CommandLineTools to the newest version(14E222 > 14E222b)
  • downgrading CommandLineTools to the previous Xcode 14.3's version 14C18


1

like image 809
stackich Avatar asked Dec 07 '25 02:12

stackich


2 Answers

Add -no-verify-emitted-module-interface to Other Swift Flags to your Build Settings if you are using SPM.

like image 166
lukaskasa Avatar answered Dec 08 '25 15:12

lukaskasa


We got the same issue in my code, and I changed the:

BUILD_LIBRARY_FOR_DISTRIBUTION = No 

…in project build setting, and then it's working in my side.

like image 32
Sourabh Pal Avatar answered Dec 08 '25 17:12

Sourabh Pal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!