코딩하는 제리

[Flutter/Error] 플러터 업데이트 후 'IPHONEOS_DEPLOYMENT_TARGET' 에러 발생 본문

Flutter/Error

[Flutter/Error] 플러터 업데이트 후 'IPHONEOS_DEPLOYMENT_TARGET' 에러 발생

JerryCho 2021. 1. 30. 12:20

stackoverflow.com/questions/65008533/iphoneos-deployment-target-is-set-to-8-0-xcode-12-flutter

 

IPHONEOS_DEPLOYMENT_TARGET is set to 8.0 Xcode 12 (Flutter)

I run my Flutter project in Android Studio, pod installation goes well but Xcode build fails at the end every time like 20/30 steps first of complete the whole build. The weird fact is that Android

stackoverflow.com

 

위의 링크와 같은 에러 발생으로

스택오버플로우에서 해결법을 찾았다.

 

  1. Set the MinimumOSversion to 9.0 in ios/Flutter/AppFrameworkInfo.plist
  2. In Xcode, ensure that the iOS deployment target at Runner -> Project -> Runner is set to 9.0
  3. In Xcode, ensure that the Deployment Info in Runner -> Targets -> Runner is set to iOS 9.0
  4. Double check that your GoogleService-Info.plist is there and was added via Xcode (not copy/pasted into the directory via Finder for example)
  5. Uncomment the #platform :iOS, '9.0' line in your ios/Podfile

Then, run the following in your terminal to build with a fresh state:

flutter clean \ && rm ios/Podfile.lock pubspec.lock \ && rm -rf ios/Pods ios/Runner.xcworkspace \ && flutter build iOS

 

이후 프로젝트를 실행하고 아이폰 설정-일반-프로파일 에서 해당 프로젝트 '신뢰' 설정해준다.

Comments