项目场景:
iOS 的所有项目
问题描述
Unable to install /Users/tiger/Documents/massage/whaleweilapp/build/ios/iphonesimulator/Runner.app on 3F7CEBD3-4A70-4F3E-A02C-C334FFF6F240. 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 a valid CFBundleVersion.
Ensure your bundle contains a valid CFBundleVersion.
Command: xcrun simctl install 3F7CEBD3-4A70-4F3E-A02C-C334FFF6F240 /Users/tiger/Documents/massage/whaleweilapp/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 11.
原因分析:
没啥好分析的,就是version 拿不到
解决方案:
-
version 和 build 不能为空
-
检查红线部分,没有就添加上