项目场景:

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 拿不到


解决方案:

  1. version 和 build 不能为空
    在这里插入图片描述

  2. 检查红线部分,没有就添加上在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐