Building for iOS Simulator but linking object file built for iOS error

1.3k Views Asked by At

I have a macbook Air M1 and i cloned my project and tried to run that then got this, how could i fix this?

Showing Recent Issues In /Users/xxxxxxxx/Desktop/apps/iOS/newC/xxxxxxxx_xxxxxx/xxxx.xxxxxxx.Mobile.iOS/x_xxxxxxxxxx/Bolts.framework/Bolts(BFURL.o), building for iOS Simulator, but linking in object file built for iOS, file

'/Users/xxxxxxxx/Desktop/apps/iOS/newC/xxxxxxxx_xxxxxx/xxxx.xxxxxxx.Mobile.iOS/x_xxxxxxxxxx_Mcash/Bolts.framework/Bolts' for architecture arm64

1

There are 1 best solutions below

1
Prabodha Lakruwan On

I solved the problem myself:

post_install do |installer|
      installer.pods_project.build_configurations.each do |config|
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end
  end

Based on this page.