Skip to content

React Native / Expo iOS build compatibility issue with Particle RN SDK #35

Description

@WonJo-Jung

Hi Particle Network team,

We are evaluating Particle Network for a React Native mobile app built with Expo.

Our goal is to use Particle Auth / AA in a React Native iOS app, but we could not produce a successful EAS development build with the current RN SDK packages.

Environment tested:

  • Expo SDK 54 / React Native 0.81
  • Expo SDK 51 / React Native 0.74.5
  • EAS iOS development build
  • Xcode 16.x and Xcode 15.4 images
  • New Architecture enabled and disabled
  • CocoaPods with and without use_frameworks static linkage

Particle packages tested:

  • @particle-network/rn-auth@1.4.19
  • @particle-network/rn-aa@2.0.6
  • @particle-network/rn-auth-core@2.0.6
  • @particle-network/rn-base@2.0.6

Main issues observed:

  1. With Expo SDK 54 / RN 0.81 / Xcode 16.x:

    • ParticleNetworkBase.framework appears to be built with Swift 5.10
    • Build fails due to Swift compiler / binary framework compatibility issues
  2. With Expo SDK 51 / RN 0.74.5 / Xcode 15.4:

    • Without use_frameworks:
      • ParticleNetworkBase.swiftinterface fails to load Alamofire
      • ParticleAuthService.swiftinterface fails to load CryptoSwift

    Errors include:

    • cannot load underlying module for 'Alamofire'
    • cannot load underlying module for 'CryptoSwift'
    • failed to build module 'ParticleNetworkBase'
  3. With use_frameworks: "static":

    • The Particle dependency module issue appears to move forward
    • But React Native Pods then fail during archive with:
      • 'react/debug/react_native_assert.h' file not found

We also tried:

  • Downgrading Expo/RN versions
  • Aligning React Navigation / Reanimated / Worklets versions
  • Disabling New Architecture
  • Setting iOS deployment target to 15.1
  • Patching Particle podspec deployment targets
  • EAS build with clear cache

Could you please provide an officially supported compatibility matrix for:

  • Expo SDK version
  • React Native version
  • Xcode version
  • iOS deployment target
  • New Architecture support
  • Required CocoaPods settings, especially use_frameworks / modular_headers

Also, do you plan to release updated React Native SDK binaries compatible with current Expo SDK / React Native / Xcode versions?

At the moment, we are blocked from using Particle RN SDK in an Expo iOS app because the native iOS build cannot complete.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions