Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile
flutter ios 개발시에 해당 오류를 겪는 상황이 생긴다
나의 경우는 firebase의 dynamic link 세팅중 android는 잘 됐지만 아이폰에서 빌드시 에러가 났다.
인터넷에 많이 나와있는 해결방법인.
/ios/Podfile 위치에 있는 파일의 내용을 수정하는 방법이 자주 나와있었는데 해방 방법은 아래와 같다
제일 상단
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
이렇게 된 곳이 있다. 해당 부분에서
# platform :ios, '11.0'
->
platform :ios, '11.0'
이렇게 주석을 해제하는 방법이었는데 나에게는 해당 방법이 적용되지 않았다.
두번째 방법으론 위 방법을 적용 한 상태에서 아래에 있는
target 'RunnerTests' do
inherit! :search_paths
end
이부분을 주석처리를 따로 해주는 것이었는데. 테스트 해주는 부분으로
해당 부분을 주석처리 해주었다.
# target 'RunnerTests' do
# inherit! :search_paths
# end
하지만 이 경우에도 에러가 발생했기 때문에 다른 해결책이 필요했다.
에러 발생 로그창 잘 읽어보면 마지막에
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
Error launching application on iPhone 14 Pro.
해당 문구가 뜬다. 처음부터 가이드를 읽을껄.. pod repo update 명령어부터 먼저 실행!
오 업데이트 진행 후 정상 진행 앱이 실행됐는데
이때 1,2번에서 실행했던 내용을 복구 한뒤 pod repo update 만 된 상태로 실행
잘된다.
에러를 먼저 읽고 flutter doctor에서 제시하는 방법을 먼저 써야겠다.. 읽지도 않고 찾아보다 발생한 시간 허비
Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile 완료
'IT > Flutter' 카테고리의 다른 글
ITMS-90683[해결방법] ITMS-90683: Missing purpose string in Info.plist , NSPhotoLibraryUsageDescription 수정 (0) | 2023.09.26 |
---|---|
Flutter ios 배포 실패 TestFlight 업로드 실패 배포안됨 업로드안됨 (0) | 2023.09.26 |
Flutter ios 배포 TestFlight 배포 방법 가이드 (0) | 2023.09.26 |
Firebase Dynamic link 세팅 (2) (0) | 2023.09.21 |
Firebase Dynamic link 세팅 (1) (0) | 2023.09.21 |