XCode无法构建Unity3D项目:找不到lib [英] XCode does not build Unity3D Project: lib not found
问题描述
我有Unity3D项目,并且是为iOS构建的.如果我使用XCode的模拟器运行它,则效果很好.但是,如果我想为"iOS设备"或连接到Mac的物理设备编译它,则会出现很多错误,因此无法创建存档. 出于测试目的,我什至创建了一个空的Unity3D项目,为iOS生成了该项目,但仍然收到相同的错误,尽管该项目完全没有任何作用. 错误如下:
I have Unity3D project and I built it for iOS. If I run it using XCode's simulator it works fine. But if I want to compile it for "iOS Device" or for a physical device connected to my Mac, I get lots of errors and as a result I can't create an Archive. For a testing purpose, I even created an empty Unity3D project, built it for iOS and still get the same errors, although this project does absolutely nothing. The errors are the following:
ld:-liPhone-lib找不到库
ld: library not found for -liPhone-lib
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这些是我使用的设置:
- 架构:armv7,armv7s,arm64(也尝试删除arm64而没有任何积极结果)
- 基本SDK:iOS 7.1
- 正在建立活动:否
- 支持的平台:iOS
- 有效拱门:armv7,armv7s,arm64
我使用XCode 5.1.1和Unity 4.5.1(之前甚至尝试过4.3.2)
I use XCode 5.1.1 and Unity 4.5.1 (previously even tried 4.3.2)
如何构建项目并创建存档?
推荐答案
我前段时间也遇到过同样的问题,该问题已通过在库搜索路径下替换引号来解决:
I've run into the same issue some time ago and it was fixed by replacing quotes under library search path:
替换
"$(SRCROOT)/Libraries"
与
$(SRCROOT)/Libraries
更多: http://answers.unity3d.com/questions/538363/error-when-i-updated-to-xcode-5-to-get-import-to-i.html
这篇关于XCode无法构建Unity3D项目:找不到lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!