skip to Main Content

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?

3

Answers


  1. 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
    
    Login or Signup to reply.
  2. For Mac’s with the new M1 chip:

    1. Open Finder -> Applications
    2. Right-click on XCode -> Select Get Info
    3. Select the box for Open with Rosetta
    4. Completely quit XCode and reopen.
    Login or Signup to reply.
  3. For me the fix was Kirill’s accepted answer, but I also needed to add arm64 for Excluded Architectures in target’s Build Settings:

    1

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search