一切正常,直到我将 MacOS 更新到 v 10.15.7\n但我不能保证这是真正的问题。
\n相同的代码在 Android 上完美模拟,但在 iPhone 上运行时出现以下错误:
\n[ +2 ms] Unable to install /Users/***/project_dir/build/ios/iphonesimulator/Runner.app on 4E3679AE-08E6-4DBE-A940-20E4D34F2122. This is\nsometimes caused\n by a malformed plist file:\n ProcessException: Process exited abnormally:\n An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):\n Failed to install the requested application\n The application's Info.plist does not contain CFBundleVersion.\n Ensure your bundle contains a CFBundleVersion.\n Command: /usr/bin/xcrun simctl install 4E3679AE-08E6-4DBE-A940-20E4D34F2122\n/Users/***/project_dir/build/ios/iphonesimulator/Runner.app\n[ +1 ms] Error launching application on iPhone 11 Pro.\n[ +3 ms] "flutter run" took …Run Code Online (Sandbox Code Playgroud)