[Flutter] IOS Module not found error

rosi_bg99·2023년 6월 9일
0

새 프로젝트를 생성하고 aws Cognito와 Amplify를 공부하던 중 공식 문서대로 해봤지만 ios 빌드만 실패하였다.

pubspec.yaml

environment:
  sdk: '>=2.18.0 <4.0.0'
  flutter: ">=3.3.0"

dependencies:
  flutter:
    sdk: flutter

  amplify_flutter: ^1.1.1
  amplify_auth_cognito: ^1.1.1

에러 메세지

Failed to build iOS app
Parse Issue (Xcode): Module 'amplify_auth_cognito' not found

스택오버플로우 참고
https://stackoverflow.com/questions/61956166/flutter-module-not-found-in-xcode

  1. platfom: ios, '13.0' 설정
  2. Flutter clean > flutter pub get > pod update > pod install --repo-update
  3. 패키지 재설치

위에 방법으로는 해결되지 않아서 다른 방법을 찾아봤다.
https://ts2ree.tistory.com/281

새 프로젝트의 podfile이 비어있었다. 위 방법대로 podfile을 변경해주면 잘 빌드된다.

0개의 댓글