ios - 架构 i386/armv7 [cocoapods] 的 undefined symbol
<p><p>使用 <code>$ pod install</code> 命令安装自定义 pod 后,我无法构建项目,因为出现如下错误(在我的 Xcode 上,错误是关于 <strong>armv7</strong >,在另一个Xcode上,错误是关于<strong>i386架构</strong>):</p>
<pre><code>Undefined symbols for architecture armv7:
"_generateCombMatrix", referenced from:
- in libPods-Bot-betting-core.a(ClassName)
"_debugLog", referenced from:
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
- in libPods-Bot-betting-core.a(className.o)
...
"_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO", referenced from:
- in libPods-Bot-betting-core.a(className.o)
</code></pre>
<p>错误中提到的文件位于项目 <strong>Pods</strong> 中,并且 libPods.a 库已正确链接到该项目。
这是调试时的 .xconfig 文件(发布时相同):</p>
<pre><code>GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/betting-core"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/betting-core"
OTHER_LDFLAGS = -ObjC -l"Pods-Bot-betting-core"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_ROOT = ${SRCROOT}/Pods
</code></pre>
<p>该库支持如下屏幕所示的架构:
<img src="/image/TeGWk.png" alt="supported architecture"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>今天遇到了类似的问题。我能够通过删除所有派生数据来解决该问题:Windows -> 项目 -> 选择您的工作区 -> 单击右侧“派生数据”旁边的“删除...”。</p></p>
<p style="font-size: 20px;">关于ios - 架构 i386/armv7 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/27144191/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/27144191/
</a>
</p>
页:
[1]