Xcode Buildtime错误:“无法加载文件列表的内容:.../Info.plist"(在目标"xxxx"中) [英] Xcode Buildtime Error: 'Unable to load contents of file list: '.../Info.plist' (in target 'xxxx')

查看:65
本文介绍了Xcode Buildtime错误:“无法加载文件列表的内容:.../Info.plist"(在目标"xxxx"中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,Xcode开始在项目中引发此错误,但我很难弄清它的含义和解决方法,并且在任何搜索中都没有发现.尝试构建到设备后立即发生(没有脚本编译等):

Xcode started throwing this error in a project today, and I'm having trouble figuring out what it means and how to troubleshoot it, and it's not coming up in any searches. It happens immediately after trying to build to a device (no scripts compile, etc):

错误:无法加载文件列表的内容:"/Users/.../Products/Debug-appletvos/myapp.app/Info.plist"(位于目标"myapp"中)

下面是完整日志,(为简便起见,请注意,我已将build文件夹替换为...)

Full log below, (note I've replaced build folder with ... for brevity)

Showing Recent Messages

Prepare build
note: Using new build systemnote: Planning buildnote: Constructing build description

Build system information
error: Unable to load contents of file list: '/Users/.../Products/Debug-appletvos/myapp.app/Info.plist' (in target 'myapp')


Build failed    3/5/19, 3:09 PM    0.2 seconds

到目前为止我已经尝试过的事情:

Things I've tried so far:

  • 重新启动Xcode
  • 重新启动计算机
  • 产品">清洁构建文件夹"
  • 手动删除Build文件夹中的所有内容
  • 在同一台计算机上重新下载存储库(相同问题)
  • 在另一台计算机上重新下载存储库(相同问题)
  • 恢复为先前的有效提交(同一问题)
  • plutil Info.plist 响应 Info.plist:确定

其他注意事项:

  • 项目使用Cocoapods
  • 项目利用自定义C ++代码
  • Info.plist 文件中唯一的文件列表是2种自定义字体的列表,但是这些字体在Xcode项目浏览器中可以正常显示(不是红色).
  • Project uses Cocoapods
  • Project utilizes custom C++ code
  • The only file list in the Info.plist file is a list of 2 custom fonts, but those are showing up ok in the Xcode project browser (not red).

如果任何人以前曾遇到过此问题并已解决,或者有其他任何疑难解答建议,我将不胜感激,谢谢!

If anyone has encountered this before and has a fix, or has any other suggestions for troubleshooting I would greatly appreciate it, thanks!

推荐答案

就我而言,我只是固定在下面

In my case, I just fixed below

  1. 在项目文件夹下打开终端
  2. pod解体
  3. sudo gem install cocoapods-clean
  4. 吊舱清洁
  5. 打开项目并删除(如果仍然存在)应为红色的"Pods"文件夹
  6. pod设置(这可能需要一些时间)
  7. pod安装
  1. Open terminal under project folder
  2. pod deintegrate
  3. sudo gem install cocoapods-clean
  4. pod clean
  5. Open the project and delete (if it's still there) the "Pods" folder that should be red
  6. pod setup (This may take some time)
  7. pod install

这篇关于Xcode Buildtime错误:“无法加载文件列表的内容:.../Info.plist"(在目标"xxxx"中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆