Error 1
Error : Unable to boot device in current state: Bootec
이미 구동된게 있어서 에러가 나는 것
Solution
xcrun simctl list
사용 가능한 모든 시뮬레이터를 나열해서 해결
Error 2
npm run ios
를 입력하는데 계속 아래 에러만 떴다.
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening my_awesome_native.xcodeproj.
xcode 이슈인지는 모르겠으나, 내가볼땐 xcode는 잘못 없는 것 같았다.
그치만,, 해결안됨
Error 3
No 'Podfile' found in the project directory
Podfile이 먼데,,, 왜 자동으로 깔아주지 않은건데,,
그냥 정신 차리고 다시 깔아봅시다
블로그 뒤져보면서 M1 호환 문제 때문이라는 생각이 들었다.
`pod install`을 했을 때 제대로 설치되지 않았다.
정신차리고 다시 처음부터 깔아보자!😇
`npx react-native init HelloRN`
HelloRN 명의 RN 프로젝트를 만들어준다.
cd ios
ios 파일로 들어가준다(podFile이 있는 경로에서 진행).
왜냐면 pod를 깔아줘야한다.
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
m1에서 그냥 아무 생각없이 pod install
을 하는데 계속 에러가 나, 많이 많이 아주 많이 고생했다.