菜鸟教程小白 发表于 2022-12-13 05:37:56

ios - 修复与 platform_strong.dill 相关的错误


                                            <p><p>我做了 <code>flutter build iOS</code>,我得到了这 3 个与 <code>platform_strong.dill</code> 文件相关的错误:</p>

<pre><code>Xcode&#39;s output:

    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
    Building AOT snapshot in release mode (ios-release)...         

    Compiler message:

    Error: SDK summary not found:
    file:///Users//Documents/Documents/development/flutter/bin/ca
    che/artifacts/engine/common/flutter_patched_sdk_product/platform_strong.dill
    .

    Error: Error when reading
    &#39;file:///Users//Documents/Documents/development/flutter/bin/c
    ache/artifacts/engine/common/flutter_patched_sdk_product/platform_strong.dil
    l&#39;: No such file or directory

    Error: Error when reading
    &#39;file:///Users//Documents/Documents/development/flutter/bin/c
    ache/artifacts/engine/common/flutter_patched_sdk_product/platform_strong.dil
    l&#39;: No such file or directory
</code></pre>

<p>它说文件不存在,但它是:</p>

<p> <a href="/image/uKeQ0.png" rel="noreferrer noopener nofollow"><img src="/image/uKeQ0.png" alt="enter image description here"/></a> </p>

<p>还有其他人遇到过这些错误吗?我将如何修复它们?我有最新的 <code>flutter</code> 和 Xcode 10.3。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>删除缓存文件夹有效! <code>rm -fr flutter/bin/cache</code>。然后我运行 <code>flutter build iOS</code>,所有与 <code>platform_strong.dill</code> 相关的错误都消失了。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 修复与 platform_strong.dill 相关的错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/57704113/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/57704113/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 修复与 platform_strong.dill 相关的错误