voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

Build error on Apple Silicon #138

Closed alexanderoskin closed 4 months ago

alexanderoskin commented 2 years ago

Build error on Mac with Apple Silicon. Can be build successfully only if Bitcode disabled for the project.

react: 17.0.2 react-native: 0.66.4 react-native-voximplant: 1.27.1

pe1ros commented 2 years ago

Hello @alexanderoskin !

To enable bitcode in your project, you need to do the following steps:

1) Enable Bitcode on Xcode Project->Build Options->Enable Bitcode 2) Download a required Voximplant iOS SDK version (and VoximplantWebRTC dependency) with bitcode for a specific Voximplant React Native SDK. Please check this page for download links. Voximplant React Native SDK 1.27.1 depends on VoxImplant_bitcode(2.44.0) and VoxImplantWebRTC_bitcode(93.0.0)

  1. Update Podfile target ‘ProjectName’ do // add these lines pod ‘VoxImplantSDK’, :path => ‘Path/To/VoxImplant_bitcode/’ pod ‘VoxImplantWebRTC’, :path => ‘Path/To/VoxImplantWebRTC_bitcode/’
  2. сd ios && pod install