ReactNative - [Error] iOS - Could not get the simulator list from Xcode
· 약 6분
author: Dev.ian
createdAt: 2022-05-28
updatedAt: 2022-05-28
ReactNative 의 iOS 빌드 에러(xcode, podfile)를 해결해 본다.
Intro
React Native 를 이용해 iOS 빌드 중 아래의 2가지 에러로 빌드에 실패했다. 2가지 에러에 대한 원인을 찾아보고 해결해 보기로 했다.
error Could not find "Podfile.lock"
error Could not get the simulator list from Xcode.
Error
-
빌드 실패 에러는 아래와 같다.
$ npm run ios
error Could not find "Podfile.lock" at /${PROJECT_PATH}/ios/Podfile.lock. Did you run "pod install" in iOS directory?
info Found Xcode project "${APP_NAME}.xcodeproj"
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
error Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues. Run CLI with --verbose flag for more details.
Error: Command failed: xcrun simctl list --json devices
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH