Skip to content

Build Fails on Intel Mac with Xcode 16: unsupported Swift architecture in BridgefySDK #42

@1kemuefuna

Description

@1kemuefuna

❌ Build Fails on Intel Mac with Xcode 16: unsupported Swift architecture in BridgefySDK.xcframework

📝 Description

Hi Bridgefy team,

I'm encountering a build failure with the Bridgefy React Native SDK when running on Intel-based Macs with Xcode 16 and the iOS 18 simulators.


🔍 Environment

Key Value
React Native 0.80.1
React 19.1.0
Node.js v20.19.0
macOS Ventura/Sonoma (Intel MacBook Pro 2018)
Xcode 16
Simulator iPhone 16 Pro (iOS 18.0)
Bridgefy SDK latest

❗️Errors

When attempting to build using:

npx react-native run-ios --simulator="iPhone 16 Pro"

I get:

BridgefySDK.framework/Headers/BridgefySDK-Swift.h:316:2: unsupported Swift architecture
#error unsupported Swift architecture

Additionally, there's a React Native New Architecture deprecation warning:

RCTDefaultReactNativeFactoryDelegate.mm: 'newArchEnabled' is deprecated: Use RCTIsNewArchEnabled instead [-Wdeprecated-declarations]

🧠 Analysis

  • The .xcframework appears to lack x86_64 slices required for Intel-based simulator support.
  • The SDK works fine on real devices but breaks during simulator builds on Intel Macs.
  • The use of newArchEnabled is deprecated in React Native 0.80+, and should be replaced with RCTIsNewArchEnabled.

🧪 Temporary Workarounds Tried

  • Excluding x86_64 via Podfile (lets build continue but disables simulator testing):
post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'BridgefySDK'
      target.build_configurations.each do |config|
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
      end
    end
  end
end
  • Real device builds succeed with no issues.

🙏 Request

Please let us know if there's an update in progress, or any known workaround for simulator compatibility on Intel Macs. Thanks for maintaining this SDK!

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions