【问题标题】:Xcode fails to install my app on both simulator and iPhoneXcode 无法在模拟器和 iPhone 上安装我的应用程序
【发布时间】:2021-04-04 13:24:25
【问题描述】:

我正在尝试在模拟器/手机上运行我的应用程序,但收到以下消息。我在 Xcode 12.2 上也遇到了这个问题,但是在将 Xcode 更新到 12.3 后问题没有解决。将库嵌入类型更改为不嵌入或在安装时复制要复制的文件可让应用程序运行,但由于无法自行加载库,因此很快崩溃。

我已经尝试清理项目和派生数据文件夹,重新启动我的 Mac、模拟器(也重置模拟器数据)和我的手机。 删除应用程序并使用 Carthage 重新安装框架也无济于事 我正在使用最新的 Carthage 版本。

我看过以下这些答案,但要么没有帮助,要么是关于 cocoapods:

Xcode error Extra info about plist: ACL=<not found>

Failed to load Info.plist from bundle

Unable To Install “AppName”
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Please try again later.
Recovery Suggestion: Failed to load Info.plist from bundle at path /Users/UserName/Library/Developer/CoreSimulator/Devices/99CF9C54-3B8A-47E7-8FF3-0FD688140975/data/Library/Caches/com.apple.mobile.installd.staging/temp.x2AUa9/extracted/Payload/AppName.app/Frameworks/FSCalendar.framework; Extra info about Info.plist: Couldn't stat /Users/UserName/Library/Developer/CoreSimulator/Devices/99CF9C54-3B8A-47E7-8FF3-0FD688140975/data/Library/Caches/com.apple.mobile.installd.staging/temp.x2AUa9/extracted/Payload/AppName.app/Frameworks/FSCalendar.framework/Info.plist: No such file or directory
--
Failed to load Info.plist from bundle at path /Users/UserName/Library/Developer/CoreSimulator/Devices/99CF9C54-3B8A-47E7-8FF3-0FD688140975/data/Library/Caches/com.apple.mobile.installd.staging/temp.x2AUa9/extracted/Payload/AppName.app/Frameworks/FSCalendar.framework; Extra info about Info.plist: Couldn't stat /Users/UserName/Library/Developer/CoreSimulator/Devices/99CF9C54-3B8A-47E7-8FF3-0FD688140975/data/Library/Caches/com.apple.mobile.installd.staging/temp.x2AUa9/extracted/Payload/AppName.app/Frameworks/FSCalendar.framework/Info.plist: No such file or directory
Domain: MIInstallerErrorDomain
Code: 35
User Info: {
    FunctionName = "-[MIBundle _validateWithError:]";
    LegacyErrorString = PackageInspectionFailed;
    SourceFileLine = 131;
}
--


System Information

macOS Version 11.1 (Build 20C69)
Xcode 12.3 (17715) (Build 12C33)

【问题讨论】:

  • 那么你的项目中有 Info.plist 文件吗?
  • @ElTomato 它没有丢失我确实拥有的项目的 Info.plist,但它说其中一个框架丢失了 Info.plist,但这发生在我使用 Carthage 更新之后。我已经在 GitHub 上查看了该项目 repo,但在其提交历史中,他们没有删除 Info.plist。
  • 您能否截取您在目标设置中看到的框架 plist 的路径?然后还要确保这正是您在 xcodeproj 文件中看到的内容,然后确保它的路径与 plist 的实际路径匹配?通常 Xcode 不会对这些撒谎。基本上包括足够的截图来证明编译器在撒谎:)

标签: ios swift xcode


【解决方案1】:

我在 Xcode 上遇到过这个问题。 然后我尝试重置模拟器的内容和设置,它对我有用。

【讨论】:

  • 我确实重置了模拟器的内容和设置,但遗憾的是它对我不起作用:((
  • 那么请查看这篇文章,它可能对您有所帮助。 handyopinion.com/…
  • 我在这里问我的问题之前确实查看了该网站,但提供的解决方案适用于可可豆荚,但我使用的是 Carthage。不过感谢您的帮助。
  • 很抱歉没有给出完美的解决方案。当我得到答案时,我会告诉你的。
  • 我设法解决了。我为这个特定的框架切换到 SPM。
【解决方案2】:

我仍然不知道是什么导致了问题,但似乎切换到 SPM 可以解决问题。 这很奇怪,因为过去几个月一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-16
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    • 2013-09-15
    • 2011-11-17
    • 2013-09-29
    相关资源
    最近更新 更多