我使用Unity3D5.2导出iOS项目,但是在Xcode中编译遇到这个问题时,请帮忙!
ld: warning: directory not found for option '-
L/Users/lzy/Downloads/IOS88888/LibrariesPlugins/iOS'
Undefined symbols for architecture arm64:
"_saveToGallery", referenced from:
_ScreenshotManager_saveToGallery_m182 in Bulk_Assembly-CSharp_0.o
(maybe youmeant: _ScreenshotManager_saveToGallery_m182)
ld: symbol(s) not found for
architecture arm64 clang: error: linker command failed with exit code 1 (use
-v to see invocation)
答案 0 :(得分:0)
您的某个图书馆错过了目标架构。尝试模拟器或其他具有差异CPU的设备。
使用cmmand'lipo -info'
列出库中所有可用的体系结构例如:
localhost:~ user$ lipo -info /Applications/iTerm.app/Contents/Frameworks/Sparkle.framework/Sparkle
Architectures in the fat file: /Applications/iTerm.app/Contents/Frameworks/Sparkle.framework/Sparkle are: ppc i386 x86_64
答案 1 :(得分:0)
你错过了额外的' /'在您的图书馆搜索路径中。它是Vuforia的一个错误,那就是' \'而不是' /'在路径名中。 Apple(和Linux)对待' \'作为路径名中的转义字符。
你有:' / LibrariesPlugins / iOS'
正确的道路:' / Libraries / Plugins / iOS'