반응형
error: 'Flutter/Flutter.h' file not found when flutter run on iOS
I don't know why but I can't build or run the App in my new Macbook, I run the same folder on another Mac or my windows computer and runs perfectly. here when I run flutter clean, I have to run pub...
stackoverflow.com
error: 'Flutter/Flutter.h' file not found when flutter run on iOS
1. ios/Runner 폴더 복사해서 메모앱에 백업 파일 생성
2. ios 폴더 삭제
3. 프로젝트가 있던 폴더 (ios를 감싸고 있던 루트) 에서 'flutter create .'
4. 다시 Ios 폴더가 생성되면 생성된 Runner를 제거하고 백업을 복붙
5. Runner.xcworkspace(ios 폴더로)를 열고 버전, 번들 ID 및 모든 정보를 확인
6. 만약 파이어베이스가 있는 경우 Google Service-Info.Plist를 복사하여 다시 붙여넣어야 함
마지막으로 백날 하는
flutter clean
flutter pub get
cd ios
pod install
재실행 ㄱㄱ
'Flutter' 카테고리의 다른 글
[Flutter] 플러터 - Flutter xcodebuild: error: Unable to find a destination matching the provided destination specifier (0) | 2024.05.10 |
---|---|
[Flutter] 플러터 - IconButton 크기 줄이기, (0) | 2024.05.10 |
[Flutter] 플러터 -TabView - ListView 상단 여백 문제 (0) | 2024.05.07 |
[Flutter] 플러터 - AOS, terminated시 fcm 수신 불가 (0) | 2024.04.08 |
[Flutter] 플러터 - pud.dev 패키지 수정하고 배포하기 (0) | 2024.03.06 |