inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

화면에 Google Maps 보여주기

구글 맵스 ios 오류

470

유림

작성한 질문수 1

0

Launching lib/main.dart on iPhone 15 in debug mode...

Running pod install...

CocoaPods' output:

[!] Invalid Podfile file: /Users/yurim/Desktop/flutter/chool_check_app/Flutter/Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first.

# from /Users/yurim/Desktop/flutter/chool_check_app/ios/Podfile:9

# -------------------------------------------

# unless File.exist?(generated_xcode_build_settings_path)

> raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"

# end

# -------------------------------------------

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:335:in `rescue in block in from_ruby'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:329:in `block in from_ruby'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `instance_eval'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `initialize'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `new'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `from_ruby'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:293:in `from_file'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `load'

/opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `<main>'

Error running pod install

Error launching application on iPhone 15.스크린샷 2024-06-05 오후 2.48.42.png
이렇게 에러가나서 지도가 나오지 않습니다 ㅜㅜ 도와주세요

flutter 클론코딩

답변 3

0

코드팩토리

안녕하세요!

저희 카카오 채널로 오셔서 원격 신청해주시면 봐드리겠습니다.

https://links.codefactory.ai

감사합니다!

0

유림

아직 해결이 안됩니다 ㅠㅠ

 

0

인프런 AI 인턴

안녕하세요, 인프런 AI 인턴입니다.

유림님께서 겪고 계신 Podfile 관련 오류는 Flutter 프로젝트에서 iOS 앱 개발 시 발생하는 일반적인 문제 중 하나로 보입니다. CocoaPods는 iOS 프로젝트의 의존성 관리를 위해 사용되며, pod install 명령어를 통해 필요한 라이브러리를 설치합니다. 하지만 Generated.xcconfig must exist라는 오류는 보통 Flutter 프로젝트를 준비하는 과정에서 필요한 설정 파일이 누락되었거나 생성되지 않은 경우 발생합니다.

이를 해결하기 위해선 오류 메시지에서 제안하는 대로 먼저 flutter pub get 명령을 실행하여 Flutter 프로젝트의 의존성을 다운로드하고, 필요한 설정 파일들을 생성해야 합니다. 여기서 flutter pub get 명령은 pubspec.yaml 파일에 명시된 모든 패키지를 다운로드하고, 프로젝트에 필요한 설정 파일을 생성하는 역할을 합니다.

또한 CocoaPods에 관련된 오류를 다룬 유사한 경우들을 참고하시면 도움이 될 수 있습니다:

  • “flutter clean 후 재시작 시 cocopod 에러” - 해당 문제는 CocoaPods 설치와 관련된 문제로, 환경 설정을 확인하고 재설정하는 방법에 대한 해결책을 제공합니다.
  • “웹뷰 수행시 cocoapods 문제” - 이 사례 역시 CocoaPods와 관련된 문제로, ARM 기반의 Cocoapods를 설치해야 하는 상황을 설명합니다. 또한 환경 설정을 다시 하는 과정을 통해 문제를 해결한 경우입니다.

또한, CocoaPods와 관련하여 다른 문제(예: 버전 충돌, 설치 오류 등)를 겪고 계시다면, 공식 CocoaPods 설치 가이드를 참고하여 적절한 버전의 CocoaPods를 설치하고, Podfile을 올바르게 구성하는 것이 중요합니다.

만약 위의 내용으로도 문제가 해결되지 않는다면, 추가적인 조치로 Xcode를 열고 프로젝트 설정에서 iOS 버전을 확인하고 필요한 경우 업데이트하는 것도 도움이 될 수 있습니다.

저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.

198강 (){onTap(e);}의 이해 돕기

0

26

1

video_call 플러그인 설치후 에러 발생

0

45

1

SDK 안드로이드 설치 질문!

0

60

1

코드팩토리 디스코드 링크 다시 부탁드려요~

0

92

1

Webview를 이용해서 URL 상의 페이지 출력 불가

0

70

1

홈스크린 함수를 함축해서 main.dart에 옮기는 문제

0

55

1

플레이스토어

0

59

1

아고라 엔진 init 함수의 반환타입이 Future<void> 이것의 의미는 무엇인가요?

0

55

1

가이드라인 질문

0

57

0

emulator 에러 환경설정 뭐가 문제 일까요??

0

76

1

emulator 실행 오류

0

93

3

Column을 가로방향 최대 사이즈를 차지하도록 하는 방법에 관련

0

71

1

pubspec.yaml에서 font를 추가하면서 weight 값을 지정하는 것이 의미가 있는 것인지 문의

0

43

1

setState()를 호출하지 않으면 build가 실행 안되는 건가요?

0

53

1

video_call 플러그인 설치시 에러문제

0

64

1

children 안의 if 문에서 { } 못쓰는 이유?

0

48

1

이렇게 오류가 떠요

0

63

1

AppBar 사용했는데

0

61

2

[문제해결] '오늘도 출첵!' 의 171번 강의에서 중요한 문제를 발견했습니다

0

56

1

StatefulWidget 실습 에러가 발생합니다.[해결완료]

0

63

1

Video Player 프로젝트에 대한 추가 질문

0

53

0

Row위젯이나 column위젯의 위치는 누가 정하나요??

0

42

1

geolocator 오류때문에 개발진행이 불가능입니다

0

63

1

API 관련 이슈

0

86

2