xcode Apple Mach-O 链接器警告不会消失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11981098/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Apple Mach-O linker warning won't go away
提问by cory ginsberg
I have had this Apple Mach-O linker warning in my project for a few days now. It is more annoying than anything, but I fear that it may somehow be affecting my app's performance (I have had so many weird issues with Xcode, that I wouldn't doubt anything at this point). The warning says:
几天来,我的项目中出现了这个 Apple Mach-O 链接器警告。它比任何事情都更烦人,但我担心它可能会以某种方式影响我的应用程序的性能(我在 Xcode 上遇到了很多奇怪的问题,在这一点上我不会怀疑任何事情)。警告说:
warning: directory not found for option '-L/Volumes/ZBarSDK/ZBarSDK'
警告:找不到选项“-L/Volumes/ZBarSDK/ZBarSDK”的目录
I have no idea what can be causing this or how to fix it. I have a folder in my app called ZBarSDK, but adding another ZBarSDK does not fix the problem! I tried searching my computer for a Volumes folder with no luck, either it's not there, or Apple hid it pretty well. Please let me know what I can do to fix this
我不知道是什么导致了这个或如何解决它。我的应用程序中有一个名为 ZBarSDK 的文件夹,但添加另一个 ZBarSDK 并不能解决问题!我尝试在我的计算机上搜索 Volumes 文件夹,但没有运气,要么它不存在,要么 Apple 很好地隐藏了它。请让我知道我能做些什么来解决这个问题
回答by cory ginsberg
What I needed to do:
我需要做的:
- Click on your project (targets)
- Click on Build Settings Under Library Search Paths
- delete the path
- 单击您的项目(目标)
- 单击库搜索路径下的构建设置
- 删除路径
Worked wonders!
创造了奇迹!
回答by Jasper
I found the reference which I had to delete at:
我在以下位置找到了必须删除的参考:
- Target
- Build Settings
- Header Search Paths
- 目标
- 构建设置
- 标题搜索路径
回答by Senseful
Mine was under Framework Search Paths.
我的是在框架搜索路径下。
The easiest way to find where the bad path is, is to type a part of it in the search box on the top right. That will filter the list to only that one bad path. Deleting it, as the other answers suggest, fixes the problem.
找到坏路径的最简单方法是在右上角的搜索框中输入它的一部分。这会将列表过滤为仅该一条错误路径。正如其他答案所暗示的那样,删除它可以解决问题。
See this answerfor more info.
有关更多信息,请参阅此答案。