해결된 질문
작성
·
1.4K
0
안녕하세요
앱실행시 오류가 발생합니다.
이전까지 오류가 종종나긴했어도 구글링으로 해결했는데
이번에는 도저히 안되고 있습니다.
제 개발환경은 M1맥이고
앱실행시
콘솔 내리다보면 다음과 같은 문구가 있고
[!] An error occurred while processing the post-install hook of the Podfile.
가장 밑에는 다음과 같이 문구가 발생합니다
Error running pod install
Error launching application on iPhone 11 Pro Max.
관련 내용을 구글링해서 해결해보려는데 안되네요
시도한방법들은
재부팅, 터미널에서 스튜디오 시작, flutter clean, flutter upgradge, ios - Podfile 두번째줄 주석
flutter doctor에는 이상없음
cd ios
flutter precache --ios
pod install
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install <- 실행시 An error occurred while processing the post-install hook of the Podfile.
등등..
답변 1
0
어 이상하네요. 미세먼지앱에서는 그런 시스템 오류가 생길만한 요소가 전혀 없거든요.
iOS 폴더를 통째로 삭제하시고 프로젝트 경로에서 flutter create . <- 실행하셔서 ios 파일들 새로 생성해보실게요!
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using ARCHS
setting to build architectures of target Pods-Runner
: (``)
Fetching external sources
-> Fetching podspec for Flutter
from Flutter
-> Fetching podspec for path_provider_ios
from .symlinks/plugins/path_provider_ios/ios
Resolving dependencies of Podfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
Comparing resolved specification to the sandbox manifest
A Flutter
A path_provider_ios
Downloading dependencies
-> Installing Flutter (1.0.0)
-> Installing path_provider_ios (0.0.1)
- Running pre install hooks
- Running pre integrate hooks
Generating Pods project
- Creating Pods project
- Installing files into Pods project
- Adding source files
- Adding frameworks
- Adding libraries
- Adding resources
- Adding development pod helper files
- Linking headers
- Installing Pod Targets
- Installing target Flutter
iOS 9.0
- Installing target path_provider_ios
iOS 9.0
- Generating module map file at Pods/Target Support Files/path_provider_ios/path_provider_ios.modulemap
- Generating umbrella header at Pods/Target Support Files/path_provider_ios/path_provider_ios-umbrella.h
- Generating Info.plist file at Pods/Target Support Files/path_provider_ios/path_provider_ios-Info.plist
- Generating dummy source at Pods/Target Support Files/path_provider_ios/path_provider_ios-dummy.m
- Installing Aggregate Targets
- Installing target Pods-Runner
iOS 13.0
- Generating Info.plist file at Pods/Target Support Files/Pods-Runner/Pods-Runner-Info.plist
- Generating module map file at Pods/Target Support Files/Pods-Runner/Pods-Runner.modulemap
- Generating umbrella header at Pods/Target Support Files/Pods-Runner/Pods-Runner-umbrella.h
- Generating dummy source at Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m
- Generating deterministic UUIDs
- Stabilizing target UUIDs
- Running post install hooks
[!] An error occurred while processing the post-install hook of the Podfile.
undefined local variable or method `continue' for #<Pod::Podfile:0x00007fc96aa86ac0>
/Users/kipis/development/flutter3.0.0/packages/flutter_tools/bin/podhelper.rb:63:in `block (2 levels) in flutter_additional_ios_build_settings'
/Users/kipis/development/flutter3.0.0/packages/flutter_tools/bin/podhelper.rb:62:in `each_child'
/Users/kipis/development/flutter3.0.0/packages/flutter_tools/bin/podhelper.rb:62:in `block in flutter_additional_ios_build_settings'
/Users/kipis/development/flutter3.0.0/packages/flutter_tools/bin/podhelper.rb:51:in `each'
/Users/kipis/development/flutter3.0.0/packages/flutter_tools/bin/podhelper.rb:51:in `flutter_additional_ios_build_settings'
/Users/kipis/FlutterProject/dusty_dust/ios/Podfile:39:in `block (3 levels) in from_ruby'
/Users/kipis/FlutterProject/dusty_dust/ios/Podfile:38:in `each'
/Users/kipis/FlutterProject/dusty_dust/ios/Podfile:38:in `block (2 levels) in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/podfile.rb:196:in `post_install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:945:in `run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:933:in `block in run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:932:in `run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:331:in `block (2 levels) in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in `write!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:330:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:947:in `rescue in run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:944:in `run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:933:in `block in run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:932:in `run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:331:in `block (2 levels) in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in `write!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:330:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error running pod install
Error launching application on iPhone 11 Pro Max.
이렇게 나옵니다
처음부터 다시 차근차근 보다가
처음 플러터 설정하는부분이 꼬였던거같습니다.
풀러터 sdk버전을 예전에 받아둔거랑 3버전을 폴더에 넣어놨었는데
which flutter 명령어시 다른경로의 플러터를 바라보고있어서 오류가 발생한거같네요
정리하고 나서 실행하니 해결하였고
감사합니다.
아뇨 미세먼지앱입니다
잘되다 갑자기 저러는데 이번오류는 처음이네요