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

标签 ios xcode google-cardboard

我正在尝试构建适用于 iOS 的 Google Cardboard 应用

https://developers.google.com/cardboard/unity/get-started-ios#prerequisites

我可以成功地将 google cardboard 应用程序构建到 android,但是当我按照说明在播放它时尝试在 Xcode 中部署时,它会出现以下错误:

ld: 找不到 -lvrunity 的库

最佳答案

它实际上是可以通过一些额外的努力来实现的。就我而言,在 Windows 上构建 iOS 项目可以正确完成,但它会错误地生成库搜索路径。因此,一旦您准备好在 Mac 上构建您的 iOS 项目(在 Windows 机器上创建),转到您的项目 -> build设置 -> 搜索路径 -> 库搜索路径 并替换每个反斜杠有一个向前的,像这样:

$(SRCROOT)/Libraries\Plugins/iOS

(我还添加了 $(SRCROOT)/Assets/Plugins/iOS 路径,因为库在那里)

关于ios - ld : library not found for -lvrunity when building google cardboard using Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32453700/

相关文章:

swift - 创建多个总和的总和

android - 如何从头到尾处理 "export"iOS 应用程序 - 针对 Android 开发人员进行了简化

c++ - 在 Xcode 中使用 std::variant

c# - 在 Unity3d 中为 VR 360 度图像应用更改聚焦球体的 Material

iphone - 无法在 iOS 上以编程方式调整 UITableView 的大小

iphone - DejalActivityView 和指标 View 错误

ios - AudioUnitRender 是什么意思?

c# - 如何在 Unity3D Google Cardboard 中限制头部旋转?

android - 如何反转 Unity Android VR 应用程序的相机/控件?

ios - fatal error : Unable to get your client ID