Could not find module for target x86_64-apple-ios-simulator

October 07, 2023

Could not find module for target x86_64-apple-ios-simulator

Could not find module for target x86_64-apple-ios-simulator

If your “Architectures” setting is currently set to $(ARCHS_STANDARD) and you want to add x86_64 for iOS simulator builds, you can do so by modifying this setting as follows:

  1. Open your Xcode project.
  2. Select your project’s target in the project navigator.
  3. Go to the “Build Settings” tab.
  4. In the “Architectures” section, you’ll need to set a custom value. Click on the “Architectures” row to edit it.
  5. Delete the current value ($(ARCHS_STANDARD)).
  6. Enter the following value to specify both arm64 and x86_64:

    $(ARCHS_STANDARD) x86_64

    This tells Xcode to build for the default architecture (which typically includes arm64 for physical devices) and adds x86_64 for the iOS simulator.

    1. Save your changes.
    2. Build and run your project on the iOS simulator again. Now it should include the x86_64 architecture for simulator builds.

    By modifying the “Architectures” setting to include $(ARCHS_STANDARD) x86_64, you ensure that your project can be built and run on both physical devices and the iOS simulator. This is useful for testing your app on simulator environments during development.

    Al update Podfile

post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
        end
    end
end

Or you can try

  1. Set “build active architecture”. to No in pods specific target.

    Set "build active architecture". to No in pods specific target.


Written by Manoj Bhardwaj who lives and works in Dharamshala Himachal Pradesh (India). My stackoverflow