728x90
Unable to install /프로젝트 경로/프로젝트이름/build/ios/iphonesimulator/Runner.app on B7CA52AD-7FBB-4E2F-8591-5BFA87A51918. This is sometimes caused by a malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleVersion.
Ensure your bundle contains a CFBundleVersion.
Command: xcrun simctl install B7CA52AD-7FBB-4E2F-8591-5BFA87A51918 /Users/duri/livecommerce/beautalk-app/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 12 Pro Max.
ios 빌드를 하면서 위와 같은 오류를 만났다..
이 오류에 대해서 검색해보면서 왜 생기지부터 찾아보았다..
검색해서 나오는 결과가 많지 않아, 정확한 이유는 잘 모르지만 빌드를 진행 했을 때 빌드 번호가 올바르지 않아서 발생한 오류였다.
문제를 해결하기 위해 아래 2개 flutter issue를 참고 하였으며, 주요 해결 방법를 정리해보았다.
1. simulator > device > erase All content and setting && flutter clean
2. ios/Runner.xcworkspace 로 들어가 build setting 확인
- debug, release, profile의 각각 runner가 제대로 연결 되었는지 확인
(Debug.xcconfig 또는 Release.xcconfig로 설정 되어야 함)
나의 경우 2번이 제대로 설정 되어 있지 않아서 발생하였는데,
실 기기로 문제없이 잘 테스트 해오다가 시뮬레이터로 하고자 하였을 때 발생하였다.
내 생각엔 Debug.xcconfig, Release.xcconfig가 잘못 되었을 때도 실 기기에서 빌드가 안되어야 할 것 같은데 .. 한번 알아봐야겠다.
github.com/flutter/flutter/issues/40623
github.com/flutter/flutter/issues/56507#issuecomment-631773721
'✏️ > Flutter' 카테고리의 다른 글
[flutter][dart] map<T> method (0) | 2021.04.18 |
---|---|
[flutter] CocoaPods install error - `.symlinks/plugins/~ (0) | 2021.04.15 |
[flutter] ios 프로젝트 설정 오류 - Runner config, CocoaPods (0) | 2021.04.15 |
[flutter] BuildContext (0) | 2021.02.02 |
[flutter] Stateful vs Stateless Widget (0) | 2021.02.02 |