【问题标题】:'This app could not be installed at this time' error Xcode“此时无法安装此应用程序”错误 Xcode
【发布时间】:2019-01-09 18:04:40
【问题描述】:

当我尝试运行我的 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

我已经被这个错误困住了几天。我在万维网上找不到这个问题的答案。

我已经尝试清除模拟器的所有内容和设置,但这并不能解决问题。清理项目也不是解决方案。

谢谢!

【问题讨论】:

标签: ios xcode flutter bundle-identifier


【解决方案1】:

您需要更改此文件中的 CFBundleIdentifier :

ios/Flutter/AppFrameworkInfo.plist

将“.app”添加到flutter BundleId“XXX”:

<key>CFBundleIdentifier</key> <string>XXX.app</string>

使用“XXX”是您自己的 bundle-id。

本期也给出了答案: https://github.com/flutter/flutter/issues/25090#issuecomment-449042782

【讨论】:

  • 对我来说这不起作用,我一直保留相同的错误消息。
猜你喜欢
  • 1970-01-01
  • 2018-05-25
  • 1970-01-01
  • 2018-11-20
  • 1970-01-01
  • 2015-07-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多