ios - 谷歌 gtl 框架集成在模拟器中出现错误但与设备一起使用
<p><p>我正在尝试将 Google gtl 框架与我的应用程序集成。但它给出了如下错误。</p>
<pre><code>Ignoring file /Users/mani/Documents/Example/GooglePlusExample/SampleApp/Security.framework/Security, missing required architecture i386 in file /Users/mani/Documents/Example/GooglePlusExample/SampleApp/Security.framework/Security (2 slices)
"_SecItemAdd", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_SecItemCopyMatching", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_SecItemDelete", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_SecRandomCopyBytes", referenced from:
- in GooglePlus(GPPSignIn.o)
"_kSecAttrAccessible", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecAttrAccount", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecAttrGeneric", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecAttrService", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecClass", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecClassGenericPassword", referenced from:
+ in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecMatchLimit", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecMatchLimitOne", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecRandomDefault", referenced from:
- in GooglePlus(GPPSignIn.o)
"_kSecReturnData", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
"_kSecValueData", referenced from:
- in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)
ld: symbol(s) not found for architecture i386
</code></pre>
<p>但我已经正确地按照他们的指示进行了操作。添加了 Security.framework,并且 <code>Other Linker Flags: -ObjC</code> 已正确设置。我可以假设,有一个愚蠢的错误。但我查不出来。请帮我。 </p>
<p><strong>注意:</strong>我使用的是 xcode5.0。 </p>
<p><strong>更新:</strong>我已经添加了他们提到的所有框架。看我的截图。
<img src="/image/8my7E.png" alt="enter image description here"/> </p>
<p><strong>更新 2:</strong> 现在它可以与 iPod Touch-5 设备一起使用,但不能与模拟器一起使用。我不知道,它是如何与设备一起工作的。 </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您似乎无意中将 <code>Security.framework</code> 复制到了您的项目中,而不是仅仅从框架搜索路径链接到它。</p>
<p>文件路径显示框架路径,</p>
<pre><code>/SampleApp/Security.framework/Security
</code></pre>
<p>检查您的项目目录中的 <code>.framework</code> 文件并将其删除。再次清理 + 构建。检查 <a href="https://stackoverflow.com/questions/1456185/build-error-missing-required-architecture-i386-in-file" rel="noreferrer noopener nofollow">here</a> 了解更多解决方法。</p>
<p>希望有帮助!</p></p>
<p style="font-size: 20px;">关于ios - 谷歌 gtl 框架集成在模拟器中出现错误但与设备一起使用,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/22147400/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/22147400/
</a>
</p>
页:
[1]