Xcode 6 beta 3:无效的虚拟文件系统覆盖文件 [英] Xcode 6 beta 3: invalid virtual filesystem overlay file

查看:27
本文介绍了Xcode 6 beta 3:无效的虚拟文件系统覆盖文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到 Xcode 6 beta 3 后,编译器不断崩溃并出现以下错误:

After updating to Xcode 6 beta 3 the compiler keeps crashing with the following error:

/[Long-path-goes-here]/all-product-headers.yaml:4:13: error: Could not find closing ]!
  'roots': [
            ^
fatal error: invalid virtual filesystem overlay file '/[Long-path-goes-here]/all-product-headers.yaml'
1 error generated.

推荐答案

通过以下操作解决:

  1. 找到/[Long-path-goes-here]/all-product-headers.yaml(在 Finder 中转到文件夹...)
  2. 用下面的代码替换内容.
  3. 保存并锁定文件.(获取文件信息,检查锁定.)

<代码>{'版本':0,'区分大小写':'假','根':[]}

在此之后Xcode 会抱怨无法写入带有此错误的文件,这是意料之中的,并且似乎不会影响构建.对于大多数人来说.如果它阻止您运行,请尝试在目标的 Build Settings 中禁用 Defines Module:

After this Xcode will complain about not being able to write the file with this error this is expected and doesn't seem to affect the build. For most people. If it prevents you from running try disabling Defines Module in Build Settings of your Target:

Unable to write to file /Users/user/Library/Developer/Xcode/DerivedData/.. (You don’t have permission to save the file "all-product-headers.yaml" in the folder "Pods.build".) 

Apple 开发者论坛上进行讨论.此外,此是 CocoaPods 问题跟踪器中的相关问题.

这篇关于Xcode 6 beta 3:无效的虚拟文件系统覆盖文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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