ios - 示例 VR iOS 应用程序中出现错误未定义架构 x86_64 的符号

标签 ios google-cardboard google-vr

我正在尝试使用 Google VR SDK 上的示例 iOS 应用程序,但在克隆和安装后遇到了问题。我已添加并安装了 CocoaPods。

运行 Treasurehunt.xcworkspace 文件后我收到的错误是:

体系结构 x86_64 的 undefined symbol : “_OBJC_CLASS_$_GVRAudioEngine”,引用自: TreasureHuntRenderer.o 中的 objc-class-ref “_OBJC_CLASS_$_GVRCardboardView”,引用自: TreasureHuntViewController.o 中的 objc-class-ref ld: 找不到体系结构 x86_64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我预测是 .m 文件没有被正确编译,但 TreasureHunt .m 文件似乎都在那里。谁能告诉我我错过了什么?

提前致谢。

最佳答案

Google 似乎不方便地将 pod 的名称从“GVRSDK”更改为“CardboardSDK”。因此,请尝试将 pod 'CardboardSDK' 行添加到您的 Podfile 中。然后在终端的项目文件夹中运行pod update。在每个 TreasureHunt.m 文件中,将“GVR”的每个实例替换为“GCS”。这应该将其定向到 CardboardSDK。

关于ios - 示例 VR iOS 应用程序中出现错误未定义架构 x86_64 的符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37418770/

相关文章:

ios - ld : library not found for -lvrunity when building google cardboard using Xcode

unity3d - Daydream Controller 无法与 Canvas 按钮正确交互

android - 纸板示例,必须从 UI 线程调用方法

java - 无法解析示例 Google VR 项目中的依赖项

android - 如何在 VR 视频上叠加 "play button"?

google-vr - 检测设备是否在 Daydream VR 耳机中

iphone - 使用映射模型在核心数据对象模型之间迁移

ios - Swift1.2中可空性注释的默认值是多少

ios - 以编程方式从另一个详细 View Controller 中的表中推送详细 View Controller

ios - ios8、popToViewController 和 UIViewControllerHierarchyInconsistency 崩溃