父包与子包具有相同的标识符(io.flutter.flutter.app)

问题描述 投票:0回答:2

我正在尝试在 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 模拟器上运行这个应用程序。

ios flutter firebase
2个回答
0
投票

在 Xcode 中打开 Flutter 项目, 遵循这个层次结构

Runner => 构建设置 => 打包 => Info.plist 文件

确保此信息。 plist 文件 = Runner/Info.plist

谢谢


0
投票

经典答案,但

flutter clean
对我有用

© www.soinside.com 2019 - 2024. All rights reserved.