Jan*_*.M. 0 xcode ios bundle-identifier flutter
当我尝试运行我的 Flutter 应用程序时,构建成功,但是当 xcode 尝试在模拟器上自动安装此构建时,出现以下错误:
The parent bundle has the same identifier
(com.abc.def) as sub-bundle at
/Users/jan/Library/Developer/CoreSimulator/Devices/DFF35FBB-FE6C-462E-80964BFBFAF57291/data/Library/Caches/com.apple.mobile.installd.staging/temp.zyu9i6/extracted/Runner.app/Frameworks/App.framework
Run Code Online (Sandbox Code Playgroud)
我已经被这个错误困住了几天。我在 Word Wide Web 上找不到这个问题的答案。
我已经尝试删除模拟器的所有内容和设置,但这并不能解决问题。清理项目也不是解决方案。
谢谢!
您需要更改此文件中的 CFBundleIdentifier :
ios/Flutter/AppFrameworkInfo.plist
Run Code Online (Sandbox Code Playgroud)
将 ".app" 添加到 flutter BundleId "XXX" :
<key>CFBundleIdentifier</key> <string>XXX.app</string>
Run Code Online (Sandbox Code Playgroud)
使用“XXX”是您自己的 bundle-id。
本期也给出了答案:https : //github.com/flutter/flutter/issues/25090#issuecomment-449042782
归档时间: |
|
查看次数: |
1608 次 |
最近记录: |