First of all, having read a lot of information online - i knew it was not gonna be an easy ride running my existing project on Apple's M1 chip
The first thing I did was to create an empty project after following the React Native environment setup documentation on https://reactnative.dev/docs/environment-setup
Thereafter, I ran
npx react-native init AwesomeTSProject --template react-native-template-typescript
to create a broilerplate project. The initailization was successful until I ran npm run ios
1st Error: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
Solved that by following this Stackoverflow post at https://stackoverflow.com/questions/65458086/failed-to-build-ios-project-we-ran-xcodebuild-command-but-it-exited-with-erro
At this stage, my project launched successfully.
Funny enough, I have answered a Stackoverflow question before relating to this at https://stackoverflow.com/questions/66062663/react-native-npx-react-native-run-ios-doesnt-work-after-initializing-the-proj/66143494#66143494 but yet my solution didnt come to me at the moment i had the issue.
After applying the fix, I was able to run my app successfully.
The second stage involves bringing in my existing codebas.
Top comments (0)