菜鸟教程小白 发表于 2022-12-12 20:01:39

ios - 将 xcode 5.0 更新到 5.1 后出现错误


                                            <p><p>我今天已将 xcode 5.0 更新到 5.1。我运行现有的项目,但现在得到错误。在 5.0 版本上运行该项目时我没有遇到任何问题。错误如下:</p>

<pre><code>ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>

<p>请人帮忙。</p>

<p>我重新添加了框架,但现在出现另一个错误,低于 </p>

<pre><code>ld: 62 duplicate symbols for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>尝试转到您的项目配置 -> build设置 -> 架构 -> 有效架构</p>

<p>检查您是否复制了 armv7s 标签。 </p>

<p>您也可以尝试将 Build Architechtures Only 设置为 YES。</p>

<p> <img src="/image/UpLLH.png" alt="enter image description here"/> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 将 xcode 5.0 更新到 5.1 后出现错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/22348441/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/22348441/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 将 xcode 5.0 更新到 5.1 后出现错误