I have a problem trying to run an application made in react-native which uses Flipper in apple silicon, I get the following error:
I tried some things like running Xcode in rosetta mode but it didn’t work, I also tried some possible solutions mentioned in this issue, but none of the options worked.
for now, the only thing that has worked is to adjust the react-native.config.js
file to prevent auto-linking for Flipper, like so:
module.exports = {
dependencies: {
'react-native-flipper': {
platforms: {
ios: null,
},
},
},
//... other react native configs
};
This option disables Flipper and what I need is to make it work, not to disable it.
3
Answers
It will integrate flipper on your project. By using this you need to install flipper to debug an app on your system and then install Sdk on the flipper app. then you can debug your app by using the flipper.
For further explanation, you can visit Here.
I hope this will help you.
Follow the below steps:
Clean everything, use everything based on the M1 build, I mean Xcode, packages, libraries and etc. everything must be based on the M1 build form
Initial an RN project, go to the ios folder, and run this command:
arch -x86_64 pod install
.It wouldn’t affect your project development source and an Intel base macOS system or other platforms would be able to continue on this source.
I am using flipper universal builds from here:
https://github.com/chiragramani/FlipperReleases/releases
As a note, I am using this for quite some time and once the new version gets out you might need to wait for 2-3 days until it generates a new universal build there.
If you don’t want to wait then you can clone the repo and run the script file and it will generate a new build instantly.
For more details you all can check this thread: https://github.com/facebook/flipper/pull/3553