inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

앱 실행 오류 An error occurred while processing the post-install hook of the Podfile

해결된 질문

1581

박지훈

작성한 질문수 5

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.

 

등등..

 

 

 

 

 

 

 

Flutter 클론코딩

답변 1

0

코드팩토리

안녕하세요.

혹시 WebView 프로젝트에서 생기는 에러신가요?

0

박지훈

아뇨 미세먼지앱입니다

잘되다 갑자기 저러는데 이번오류는 처음이네요

0

코드팩토리

어 이상하네요. 미세먼지앱에서는 그런 시스템 오류가 생길만한 요소가 전혀 없거든요.

iOS 폴더를 통째로 삭제하시고 프로젝트 경로에서 flutter create . <- 실행하셔서 ios 파일들 새로 생성해보실게요!

0

박지훈

안되네요 ..

혹시 몰라서 안드로이드 avd로 실행해보니까 안드로이드는 되긴하는데

ios는 여전히 안되고있습니다.

0

코드팩토리

에러메세지 전체를 복붙해주시겠어요? 제가 한번 봐볼게요

0

박지훈

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.

이렇게 나옵니다

0

코드팩토리

cocoapods brew로 설치하는 과정 전부 따라하셨죠?

인텔기반 cocoapods 사용하시면 안됩니다.

0

박지훈

처음부터 다시 차근차근 보다가

처음 플러터 설정하는부분이 꼬였던거같습니다.

풀러터 sdk버전을 예전에 받아둔거랑 3버전을 폴더에 넣어놨었는데

which flutter 명령어시 다른경로의 플러터를 바라보고있어서 오류가 발생한거같네요

정리하고 나서 실행하니 해결하였고

감사합니다.

 

0

코드팩토리

다행이네요~ 또 질문있으시면 언제든 문의주세요!

LocationPermission.denied관련 질문입니다

0

588

1

videocontrollor dispose

0

431

1

onlogotap함수의 video nullable관련질문

0

391

1

setState 사용 차이

1

441

1

블로그 웹앱 배포 방법

0

507

1

sizedbox 위젯에 primary = RED_COLOR

1

434

1

개념 강의 순서 질문

0

408

1

materialstateProperty 다른 메소드관련질문

0

414

1

내 노트 모아보기

0

501

1

SafeArea (iPhone, Android)

0

408

1

web view 실행 안됩니다.

0

408

1

랜덤 숫자 생성기 프로젝트 관련

0

535

2

안도르이드 애뮬레이터 질문

0

384

1

super를 사용하는 건, 부모와 자식 클래스의 파라미터 이름이 꼭 같아야하나요?

0

473

1

선생님 flutter device를 크롬으로 했을때 http 통신이 안됩니다..

0

781

1

no element

0

441

1

암호화

0

235

1

책과 강의

0

386

1

voidcallback함수와 클래스내에 변수선언에 관한질문

0

475

1

android studio 세팅

0

479

1

오늘도 출근 세팅하기

2

562

1

재사용 클래스 임폴트 방법

0

480

1

가상화를 못하는 CPU인건가요? 확인 부탁드립니다.

0

399

1

flutter dispose 관련

0

1389

2