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
- Install and link
react_native_stallion
- Run the app on an Intel Mac or select an
x86_64 simulator (e.g. iPhone 8)
- 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
Description
The
react_native_stallionnative module fails to compile forx86_64simulators. This causes build errors on Intel-based Macs or CI environments that still expect universal simulator support.Error Output
Steps to Reproduce
react_native_stallionx86_64simulator (e.g. iPhone 8)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_64architectures: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_64andarm64architectures in the iOS simulator slice of thereact_native_stallion.framework. This can be done by:x86_64as a supported arch for the simulatorEnvironment