functionland / react-native-fula

React (JS/Native) wrapper for go-fula/mobile which creates a bridge between Fula and WNFS for React Native to enable developers create mobile native apps
MIT License
2 stars 5 forks source link

yarn example ios error #69

Closed ehsan6sha closed 1 year ago

ehsan6sha commented 1 year ago

error unsupported Swift architecture ^

:0: error: could not build Objective-C module 'CryptoSwift'
ehsan6sha commented 1 year ago

https://stackoverflow.com/a/75787941

ehsan6sha commented 1 year ago

Below hsould be entred into podFile of FulaExample

  # First part, using 'installer'
  react_native_post_install(
    installer,
    config[:reactNativePath],
    :mac_catalyst_enabled => false
  )
  __apply_Xcode_12_5_M1_post_install_workaround(installer)

  # Second part, 'installer' used in place of 'pi'
  installer.pods_project.targets.each do |t|
    t.build_configurations.each do |config|
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
    end
  end
end