Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such module error in Xcode 12.4 Apple M1

Tags:

xcode

ios

swift

In My Xcode 12.4 I can't build my projects anymore. Each time I do I get "No such module..." for each Pod. I haven't made any other changes to the project. I've cleaned, deleted Derived Data, restarted my computer, deleted and reinstalled the Pods, updated Cocoapods, added arm64 in excluded Architecture etc.

I can run on my device but not on a simulator

Has anyone else had this issue?

like image 581
Vijay Parmar Avatar asked Apr 05 '21 03:04

Vijay Parmar


1 Answers

Adding this to podfile helps me

post_install do |installer|   
      installer.pods_project.build_configurations.each do |config|
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end
end
like image 70
Kirill Yermak Avatar answered Sep 23 '22 14:09

Kirill Yermak