입사 4일차에게 닥친 리액트 네이티브라는 시련...
매일매일 새로운 오류를 본다 . 지겹다 진짜로
[!] Invalid `Podfile` file: undefined local variable or method `flags' for #<Pod::Podfile:0x000000011611b518>.
ios폴더에 Podfile 파일에 난 구문 오류라고 한다
아니 난 Podfile 건든적도 없는데
지가 혼자 수정되더니 지가 혼자 에러내내...
아무튼 저 `flags' 부분이 문제가 있다고 한다.
근데 난 진짜 건든적이 없으므로 ... 그냥 podfile.lock을 삭제하고 Podfile 파일도 태초로 되돌렸다 !!
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '15.0'
target 'test1' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
target 'test1Tests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
그냥 프로젝트 새로 파서 새 코드 쌔벼왔다 :)
이거랑 본인 프로젝트 파일이랑 하나하나 비교해보면 뭔가 다른것이 있을 것이다 ... 지가 혼자 수정하고 지가 에러를
어쨌든 위 코드로 복붙하고 pod install 해주면 ~! 된다 ~!
터미널 잘 실행된거 캡쳐해서 올리려했는데 Mac은 캡쳐프로그램이 어디있는거야? 너무 어렵다 맥북사지말까봐..
'JavaScript > React-native' 카테고리의 다른 글
Error: Unsupported top level event type "onGestureHandlerStateChange" dispatched (0) | 2023.08.25 |
---|---|
RN_Cannot read properties of undefined (reading 'configurations'). (0) | 2023.08.23 |
[React Navigation] RNSScreenStackHeaderConfig was not found in the UIManager (0) | 2023.06.28 |
createStackNavigator (0) | 2023.06.28 |
[React-native] 파싱에러 (0) | 2023.06.27 |