개발로그/ReactNative
**BUILD FAILD** xcode_env_generator 를 생성시키는 버전으로 expo-modules-autolinking 의 버전을 맞춰보자.
그리너리디밸로퍼
2023. 1. 29. 11:02
`pod install` failed. cannot load such file /node_modules/expo-modules-autolinking/scripts/ios/xcode_env_generator.
npx pod-install
수행시 아래처럼 xcode_env_generator 파일이 없다며 나는 오류를 만났다.
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: cannot load such file --
/Users/ju_yeonkim/ReactNativeProject/netflify05
/node_modules/expo-modules-autolinking/scripts/ios/xcode_env_generator.
# from /Users/ju_yeonkim/ReactNativeProject/netflify05/ios/Podfile:1
# -------------------------------------------
> require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
# require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
# -------------------------------------------
찾은 해결책은 xcode_env_generator 를 생성시키는 버전으로 expo-modules-autolinking 의 버전을 맞추는 것이었다.
(GitHub issues 에서 찾음.)
/node-modules/expo-modules-autolinking 폴더를 삭제한다. 그리고 아래 명령어 실행.
npm install expo-modules-autolinking@"0.10.1"
/node-modules/expo-modules-autolinking/script/ios/xcode_env_generator 파일이 생성되었는지 확인한다.
728x90