简体   繁体   中英

No such module error in Xcode 12.4 Apple M1

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?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM