카테고리 없음

[Flutter] Xcode "no such module Flutter" Error

mark340 2025. 3. 18. 18:25

1. /lib

rm -rf pubspec.lock
flutter pub cache clean
flutter clean
flutter pub get

2. /ios

rm -rf Podfile.lock
rm -rf Pods 
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod install
pod cache clean --all
pod install --repo-update --clean-install
  • 만약 애플 실리콘이 아닌, 인텔 맥북에서 제대로 작동이 안 될 경우 아래와 같이 arch 를 붙여 arch -x86_64 pod deintegrate, arch -x86_64 pod install을 입력.
rm -rf Podfile.lock
rm -rf Pods 
rm -rf ~/Library/Developer/Xcode/DerivedData/*
arch -x86_64 pod deintegrate
arch -x86_64 pod install
arch -x86_64 pod cache clean --all
arch -x86_64 pod install --repo-update --clean-install

3. XCode Product -> Clean Build Folder
4. Build