flutter 아이폰 애뮬레이터 열던중 발생한 오류
오류 내용
error (xcode): file not found: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Error running pod install
Error launching application on iPhone 14 Pro Max.
Invalid Podfile file: undefined method `enable_user_defined_build_types!'
I have installing gem on a Macbook Pro running Big Sur and M1 chip. I have followed the instructions given, added these two lines on top of my Podfile plugin 'cocoapods-user-defined-build-types'
stackoverflow.com
- gem cleanup
- brew uninstall cocoapods
- sudo gem uninstall cocoapods
- sudo gem install cocoapods -v 1.10.0 -n /usr/local/bin
- sudo gem install cocoapods-user-defined-build-types
- pod install --repo-update
pod install --repo-update에서 오류 발생
[!] Invalid `Podfile` file: undefined local variable or method `use_frameworks' for #<Pod::Podfile:0x0000000118264468>
Did you mean? use_frameworks!.
Profile 파일에
use_frameworks 를 주석처리
#use_frameworks
그후에 다시 pod install
그리고 실행
Error (Xcode): Invalid depfile: /Users/kimbyeongju/Desktop/angel/backoffice_front/.dart_tool/flutter_build/44b9726c05ac5ad4e4f388dd78a7ef3f/kernel_snapshot.d
chat gtp의 물어본 결과
rm -rf .dart_tool
flutter clean
flutter run
해결!
'Flutter' 카테고리의 다른 글
Error: The argument type 'String' can't be assigned to the parameter type 'Uri'에러 (0) | 2023.07.19 |
---|---|
[Flutter] Fetch 간소화 (0) | 2023.05.10 |
[Flutter]API 가져오는 법 설명 (0) | 2023.05.10 |
Flutter Do It으로 독학 (0) | 2023.04.14 |
오류과정 (0) | 2023.04.10 |