<small id='gXNyy'></small><noframes id='gXNyy'>

<i id='gXNyy'><tr id='gXNyy'><dt id='gXNyy'><q id='gXNyy'><span id='gXNyy'><b id='gXNyy'><form id='gXNyy'><ins id='gXNyy'></ins><ul id='gXNyy'></ul><sub id='gXNyy'></sub></form><legend id='gXNyy'></legend><bdo id='gXNyy'><pre id='gXNyy'><center id='gXNyy'></center></pre></bdo></b><th id='gXNyy'></th></span></q></dt></tr></i><div id='gXNyy'><tfoot id='gXNyy'></tfoot><dl id='gXNyy'><fieldset id='gXNyy'></fieldset></dl></div>

      <legend id='gXNyy'><style id='gXNyy'><dir id='gXNyy'><q id='gXNyy'></q></dir></style></legend>
    1. <tfoot id='gXNyy'></tfoot>
        <bdo id='gXNyy'></bdo><ul id='gXNyy'></ul>

    2. 格式错误或损坏的 AST 文件

      时间:2023-05-18
    3. <i id='3kzkT'><tr id='3kzkT'><dt id='3kzkT'><q id='3kzkT'><span id='3kzkT'><b id='3kzkT'><form id='3kzkT'><ins id='3kzkT'></ins><ul id='3kzkT'></ul><sub id='3kzkT'></sub></form><legend id='3kzkT'></legend><bdo id='3kzkT'><pre id='3kzkT'><center id='3kzkT'></center></pre></bdo></b><th id='3kzkT'></th></span></q></dt></tr></i><div id='3kzkT'><tfoot id='3kzkT'></tfoot><dl id='3kzkT'><fieldset id='3kzkT'></fieldset></dl></div>
        <legend id='3kzkT'><style id='3kzkT'><dir id='3kzkT'><q id='3kzkT'></q></dir></style></legend>

        <small id='3kzkT'></small><noframes id='3kzkT'>

          <bdo id='3kzkT'></bdo><ul id='3kzkT'></ul>
              <tbody id='3kzkT'></tbody>

          • <tfoot id='3kzkT'></tfoot>

                本文介绍了格式错误或损坏的 AST 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我有一个问题,我一开始不知道为什么会这样,但很可能是因为我错误地按下了移动到垃圾箱到某些系统框架.

                I have a problem I don't know why did it happen in the first place but most probably because I've pressed move to trash to some system frameworks by mistake.

                我收到一条错误消息:

                格式错误或损坏的 AST 文件:'找不到 AST 文件引用的文件'/Users/username/myProject/QuartzCore.framework/Headers/CAMediaTiming.h' '

                malformed or corrupted AST file: 'could not find file '/Users/username/myProject/QuartzCore.framework/Headers/CAMediaTiming.h' referenced by AST file'

                我尝试在该目录中复制 QuartzCore.framework.然后它给了我一些新的错误.然后,如果我从目录中删除框架.在我进行任何代码更改之前,一切都会对项目有利.然后我将不得不再次制作以前的场景.现在很烦人,我真的需要解决这个问题.有人吗?

                I've tried to copy QuartzCore.framework in that Directory. It give me then a punch of new errors. Then if I remove the framework from the Dir. Everything will be good for the project till I make any code change. Then I would have to make the previous scenario again. It's very annoying now and I really need to fix this. Anyone?

                推荐答案

                根据要求:

                对我来说导致此错误的原因(在获得新的 Xcode 后)是我会尝试在模拟器中运行一个项目(偶然在模拟器中,我从不使用模拟器),但我忘记选择我的设备或我的设备会在我没有注意到的情况下拔掉电源,它会尝试在模拟器中运行......所以我会得到那些经典的.o"文件错误......然后我会切换回我的设备并得到损坏的 AST 文件......

                What caused this error for me (after getting the new Xcode) was I would try to run a project in simulator (accidentally in simulator, I never use simulator), but I'd forget to select my device or my device would become unplugged without me noticing, and it will try to run in simulator... so I would get those classic ".o" file errors... Then I would switch back to my device and get corrupt AST files...

                要解决问题...(请严格按照以下步骤操作非常!!!!!)

                To CURE the problem... (Follow the steps below VERY closely!!!!!)

                1. 清理您的项目
                2. 退出 Xcode (CMD+Q)
                3. 运行此终端命令:
                  rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*
                4. 运行此终端命令:
                  rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/*
                5. 重新打开 Xcode
                6. 确保您选择了您的设备,而不是模拟器
                7. CLEAN 项目(是的,再次)
                8. 然后构建(到您的设备,不是模拟器)...

                <小时>

                享受吧!


                Enjoy!

                注意:经过进一步实验,我发现强制退出 xCode 可能没有必要.

                这篇关于格式错误或损坏的 AST 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Android GUI架构——Surface/view/window/canvas之间的关系 下一篇:XCTest.framework 构建错误

                相关文章

                1. <legend id='kCBUZ'><style id='kCBUZ'><dir id='kCBUZ'><q id='kCBUZ'></q></dir></style></legend>

                  1. <i id='kCBUZ'><tr id='kCBUZ'><dt id='kCBUZ'><q id='kCBUZ'><span id='kCBUZ'><b id='kCBUZ'><form id='kCBUZ'><ins id='kCBUZ'></ins><ul id='kCBUZ'></ul><sub id='kCBUZ'></sub></form><legend id='kCBUZ'></legend><bdo id='kCBUZ'><pre id='kCBUZ'><center id='kCBUZ'></center></pre></bdo></b><th id='kCBUZ'></th></span></q></dt></tr></i><div id='kCBUZ'><tfoot id='kCBUZ'></tfoot><dl id='kCBUZ'><fieldset id='kCBUZ'></fieldset></dl></div>

                  2. <small id='kCBUZ'></small><noframes id='kCBUZ'>

                  3. <tfoot id='kCBUZ'></tfoot>

                      <bdo id='kCBUZ'></bdo><ul id='kCBUZ'></ul>