Xcode无法在模拟器和iPhone上安装我的应用程序



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

我尝试过清理项目和派生数据文件夹,重新启动我的Mac,模拟器(也重新设置模拟器数据(和我的手机。删除应用程序并使用Carthage重新安装框架也没有帮助我使用的是最新的迦太基版本。

我看到了以下答案,但要么没有帮助,要么是关于茧的:

Xcode error关于plist的额外信息:ACL=<未找到>

未能从捆绑加载Info.plist

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)

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

我仍然不知道是什么原因导致了问题,但切换到SPM似乎解决了问题。这很奇怪,因为在过去的几个月里一切都很好。

最新更新