Xcode 6 测试版 3 : invalid virtual filesystem overlay file

标签 xcode xcode6

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

/[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.

最佳答案

通过执行以下操作解决:

  • 找到/[Long-path-goes-here]/all-product-headers.yaml(在 Finder 中转到文件夹...)
  • 用下面的代码替换内容。
  • 保存并锁定文件。 (获取文件信息,检查锁定。)
  • { 'version': 0, 'case-sensitive': 'false', 'roots': [] }
    在此之后 Xcode 会提示 关于无法使用此错误写入文件,这是预期的并且似乎不会影响构建。 编辑:对大多数人来说。如果它阻止您运行,请尝试禁用 Defines ModuleBuild Settings你的目标:
    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”.) 
    

    discussion on Apple Developer forums 致敬.还有,这个 is the relevant issue在 CocoaPods 问题跟踪器中。

    关于Xcode 6 测试版 3 : invalid virtual filesystem overlay file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24622650/

    相关文章:

    ios - 假 UINavigation 栏

    xcode6 - 为什么在Xcode 6中,尝试上传二进制文件时却得到 "You are not registered as an Apple developer"?

    c++ - 无法打开具有相对路径的文件? (C++ ifstream)

    ios - 推荐垃圾邮件移动应用程序

    ios - iOS 9.0 以下的 Storyboard 引用

    ios - 碰撞检测中断另一个碰撞检测 - Swift

    Xcode 5.1 访问应用程序本身

    swift - 在 WatchKit 中以编程方式更改行的颜色

    swift - 为什么我在 xcode 6 beta 中得到 "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES"

    ios - ios6中的MKMapView第一次崩溃