我正在尝试在 iOS 模拟器上运行 flutter 应用程序。但 android studio 控制台显示此错误:
Unable to install /Users/bmacapital/Desktop/Development/Studio
Projects/research/build/ios/iphonesimulator/Runner.app on
4929DF8A-575B-45A4-8A3A-95C7D3998A48. This is sometimes caused by
a malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command
(domain=IXUserPresentableErrorDomain, code=1):
Unable To Install “App”
Please try again later.
The parent bundle has the same identifier
(io.flutter.flutter.app) as sub-bundle at /Users/bmacapital/Library/Developer/CoreSimulator/Devices/4929DF8A-
575B-45A4-8A3A95C7D3998A48/data/Library/Caches/com.apple.mobile.installd.stagin
g/temp.wdgr5g/extracted/Runner.app/Frameworks/App.framework
Underlying error (domain=MIInstallerErrorDomain, code=57):
The parent bundle has the same identifier
(io.flutter.flutter.app) as sub-bundle at /Users/bmacapital/Library/Developer/CoreSimulator/Devices/4929DF8A-
575B-45A4-8A3A95C7D3998A48/data/Library/Caches/com.apple.mobile.installd.stagin
g/temp.wdgr5g/extracted/Runner.app/Frameworks/App.framework
Command: /usr/bin/arch -arm64e xcrun simctl install 4929DF8A-575B-45A4-8A3A-95C7D3998A48
/Users/bmacapital/Desktop/Development/Studio
Projects/research/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 11 Pro Max.
我运行命令
flutter create -i swift .
来生成我的跑步者文件夹。
现在我想在 iOS 模拟器上运行这个应用程序。
在 Xcode 中打开 Flutter 项目, 遵循这个层次结构
Runner => 构建设置 => 打包 => Info.plist 文件
确保此信息。 plist 文件 = Runner/Info.plist
谢谢
经典答案,但
flutter clean
对我有用