Skip to content

馃悰 Bug: Missing x86_64 Simulator Support#67

Description

@nativecoder1996

Description

The react_native_stallion native module fails to compile for x86_64 simulators. This causes build errors on Intel-based Macs or CI environments that still expect universal simulator support.

Error Output

Could not find module 'react_native_stallion' for target 'x86_64-apple-ios-simulator';
found: arm64-apple-ios-simulator, at: ...

Steps to Reproduce

  1. Install and link react_native_stallion
  2. Run the app on an Intel Mac or select an x86_64 simulator (e.g. iPhone 8)
  3. Xcode fails to compile with the above error

Expected Behavior

The module should compile for all supported architectures (arm64, x86_64) for iOS simulators.

Workaround (Not Ideal)

In the Podfile, we can avoid this by excluding x86_64 architectures:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
    end
  end
end

But this forces the use of only ARM64 simulators and breaks compatibility with Intel-based developers and some CI setups.

Suggested Fix

Please include both x86_64 and arm64 architectures in the iOS simulator slice of the react_native_stallion.framework. This can be done by:

  • Updating the Xcode build settings to include x86_64 as a supported arch for the simulator
  • Or distributing the precompiled module with fat binaries (universal slices)

Environment

  • macOS: sequoia 15.5
  • React Native: 0.80.1
  • Xcode: 16.2
  • Device: iOS Simulator 16 18.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions