ios 알람 어플을 다운받고 빌드하고 나서 다음과 같은 에러를 만났다.

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 ReactNativeInstaApp.xcworkspace.
Command line invocation:
이 65 에러가 나는 주요한 원인은 cached pod file이랑 현재 패키지가 사용하고 있는 pod file이랑 매치가 되지 않는 것이라고 한다.
xcode > setting > Locations에 들어가서 Derived Data 아래의 작은 화살표를 클릭한다

finder 창이 뜨는데 xcode를 반드시 먼저 종료하고! DerivedData 폴더를 삭제한다 > 휴지통에 있는 것도 삭제한다

나는 다 했는데도 실행이 안되고 다음과 같은 로그가 떴다.

warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactNativeInstaApp' from project 'ReactNativeInstaApp')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactNativeInstaApp' from project 'ReactNativeInstaApp')
The following build commands failed:~~
65에러는 해결한거 같은데 또 다른 오류가 보인다.
블로그글을 보고 다음처럼 따라했다.
cd /Users/userName/Library/Developer/Xcode/DerivedData/
ls -al // 을 통해 리스트를 보고 삭제를 하거나,
open . // 을 통해 DerivedData 폴더를 열어서 내부에 있는 폴더 전체 삭제 진행.
// 다시 react-native 프로젝트 폴더로 돌아와서
cd ./ios
pod cache clean -all
pod install
cd ../
npx react-native run-ios
해결이 안됐다.
ios 폴더에서 아래 세 폴더를 삭제한다.

프로젝트의 ios 폴더에서
pod init
pod install
아래 두 명령어를 입력해 다시 pod를 설치하고
npx react-native run-ios
로 실행을 했다.
똑같은 오류.
pod의 문제는 아닌 것 같다.
다시 아까 삭제한 세 폴더를 돌려놓았다.
프로젝트에서 npx react-native upgrade 명령어로 리액트 네이티브 업데이트를 진행하는데 다음과 같은 오류가 떴다.
Multiple Podfiles were found:~

여러 Podfile이 발견되었다는 에러.
블로그글을 보고 아래와 같이 실행해보았다.
1. ios 폴더로 이동을 하고 "bundle install" 명령어를 입력
2. "bundle exec pod install" 명령어를 실행하여 Pod dependencies 를 재설치
이렇게 했는데..자꾸 빌드가 중간에 멈춘다..... ㅜㅜㅜ
뭔가가 많이 잘못된 것 같다ㅜㅜㅜ
일단 해결못함..