본문 바로가기
flutter

flutter에서 iOS 빌드 안될 때 해결하는 방법

by run() 2021. 5. 10.

증상 1:

flutter The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'shared_preferences' from project 'Pods')

iOS 디렉터리의 모든 파일을 삭제하고 flutter create .으로 재생성했으나 에러 발생

 

ios/Podfile 에서 post_install 의 내용을 위와 같이 바꿔주면 된다. 내 케이스는 최소 9.0 버전이 필요하므로 9.0으로 세팅했다

 

증상 2:

warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')

flutter가 편리한 크로스 플랫폼 프레임워크지만, 결국 iOS 빌드는 Xcode를 거쳐야 한다. Xcode를 켜서 로그인 해주면 된다

 

 

1. Xcode를 켜서 Preferences로 들어간다
2. Accounts 탭에 계정이 없다면 등록한다
3. 나는 계정이 없어서 새로운 Apple ID를 등록했다
4. flutter 프로젝트의 ios 디렉터리에서 Runner.xcworkspace를 연다

 

5. Signing & Capabilities 탭에서 팀을 등록, Status에서 Fail이 나와도 일단 등록만 하면 됨

 

애플 개발자 등록은 유료이므로.. 등록하지 않고 그냥 계정만 생성해서 Xcode에 등록했는데 빌드 실패 문제는 해결되었다

 

 

증상 3:

error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')

왼쪽에서 GoogleService-Info.plist가 빨간글씨로 표시되고 있다

 

GoogleService-Info.plist를 인식하지 못하는 문제이다. 지우고 파이어베이스에서 다시 다운받아서 집어넣으면 해결된다.

 

 

참고자료

stackoverflow.com/questions/61823044/flutter-the-ios-simulator-deployment-target-iphoneos-deployment-target-is-se

stackoverflow.com/questions/60890976/error-build-input-file-cannot-be-found-users-googleservice-info-plist-in-t

 

댓글