본문 바로가기
Flutter

[Flutter] Error running pod install,Error launching application on iPhone 14 Pro Max.,error (xcode): file not found: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

by 김뱅쓰 2023. 8. 1.

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.

 

https://stackoverflow.com/questions/67958387/invalid-podfile-file-undefined-method-enable-user-defined-build-types

 

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

  1. gem cleanup
  2. brew uninstall cocoapods
  3. sudo gem uninstall cocoapods
  4. sudo gem install cocoapods -v 1.10.0 -n /usr/local/bin
  5. sudo gem install cocoapods-user-defined-build-types
  6. 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

 

 

해결!