플러터

[Flutter] Error `Podfile' found in the project directory.

달톤 2024. 5. 2. 14:54

[error] Podfile' found in the project directory

터미널에 입력
>cd ios
>pod install
>pod update 

 

 

 

 

기타.
[1] pod update를 했을때 나타난 경고문.
[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
[!] 지정된 플랫폼이 없으므로 대상 Runner에서 버전 12.0의 iOS를 자동으로 할당합니다. 이 대상의 플랫폼을 Podfile에서 지정하십시오. https://guides.cocoapods.org/syntax/podfile.html#platform 를 참조하십시오.

 
[해결]

ios폴더의 Podfile파일에 platform ...(2번째줄) 부분 주석 풀어주고 저장.