react-native-agora
react-native-agora copied to clipboard
4.0.0-rc.1 fails to compile on M1 iOS simulator
Hi, I've installed the new SDK 4.0.0-rc.1. It works on Android but fails to compile on M1 iOS simulator for me on React Native 0.69. Hermes and flipper disabled.
This line fails:
#import <AgoraRtcWrapper/iris_rtc_cxx_api.h>
'AgoraRtcWrapper/iris_rtc_cxx_api.h' file not found
Seems like cocoapods are not configured probably.
@LichKing-2234
You need to do this thing:
cd ios & pod install
Are you apple chip?
I did the installation many times. Yes I'm on Apple chip. But there's no problem with the old SDK.
How to reproduce:
- Create an new RN project (currently 0.70.1).
- Disable Hermes and Flipper on iOS in pod file.
- Install agora 4.0.
- Try to build
Repro https://github.com/radko93/TestAgora (just do yarn install and the pod install).
Have you checked whether your "pod install" is Success? Maybe you can look at this article, which will show you how to run react native under Apple chip: https://medium.com/@alberto.schiabel/how-to-fix-pod-install-error-in-react-native-on-mac-m1-5d79dc52f7e8
About uninstall cocoapods (Maybe you installed the wrong cocoapods ): https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
(I can run your Repro in my m1 macbook)
Yes my pod install is successful, as for all different projects I run. I don't have Rosetta cocoapods version because it's not required.
Last thing that comes to my mind: are you running on Xcode 14 and iOS16?
AgoraRctWrapper
inside AgoraIrisRTC_iOS
pod has not iOS simulator support under M1.
I can confirm it's working on real device. But why was the support removed?
It will support in the next version.
I have the same issue (also have a M1 Pro apple chip). My app works on an iOS device but simulator build fails on 'AgoraRtcWrapper/iris_rtc_cxx_api.h' file not found
I just tried version 4.0.0
that was released earlier today but I still get the same error. Was a the simulator support supposed to be included in that release @LichKing-2234 ?
it will support at 4.1.0 version
it will support at 4.1.0 version
when will 4.1.0 Version release.? Thanks
@salmanrajz The end of November
@LichKing-2234 will the 4.1.0 be released this week? 😊 My team is currently doing planning for the next month and this release plays a big part in our decisions 🙏
@LichKing-2234 will the 4.1.0 be released this week? 😊 My team is currently doing planning for the next month and this release plays a big part in our decisions 🙏
I will publish a prerelease version, it is already at the final stage.
the 4.1.0-rc.1
version has been released.
First uninstall agora: npm uninstall react-native-agora Then install pods: cd ios && pod install Now install agora latest version: npm install [email protected] Now install pods again: cd ios && pod install
You are good to go :)