xcode Apple Mach-O 链接器警告 - 框架搜索路径?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20999713/
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 - Framework Search Paths?
提问by fisher
I've stumbled upon an annoying error: Apple Mach-O Linker Warning.
我偶然发现了一个恼人的错误:Apple Mach-O 链接器警告。
ld: warning: directory not found for option '-F/Users/erik/Documents/Xcode/Hello'
ld:警告:找不到选项“-F/Users/erik/Documents/Xcode/Hello”的目录
ld: warning: directory not found for option '-FFriend'.
ld:警告:找不到选项“-FFriend”的目录。
My Project folder is called "Hello Friend". In my Framework Search Paths it has 4 rows showing:
我的项目文件夹名为“Hello Friend”。在我的框架搜索路径中,它有 4 行显示:
- $(inherited)
- /Users/erik/Documents/Xcode/Hello
- Friend
- $(PROJECT_DIR)
- $(继承)
- /用户/埃里克/文件/Xcode/你好
- 朋友
- $(PROJECT_DIR)
It looks like it has divided the word "Hello Friend" into two sections because of the space between the words so I'm thinking that's the explanation?
由于单词之间的空格,它似乎将“Hello Friend”这个词分成了两部分,所以我想这就是解释?
I've tried to edit it to
我试图将其编辑为
- $(inherited)
- /Users/erik/Documents/Xcode/Hello Friend
- $(PROJECT_DIR)
- $(继承)
- /Users/erik/Documents/Xcode/Hello Friend
- $(PROJECT_DIR)
but it jumps back.
但它会跳回来。
Any ideas?
有任何想法吗?
Very much appreciated!
非常感谢!
回答by Rizwan Shah
1: Open your Projects
1:打开你的项目
2: Click on Targets
2:点击目标
3: Click on Build Settings
3:点击构建设置
4: Click on "Framework Search Paths" or "Library Search Paths" and you should find the bogus paths listed in there, which you can delete.
4:点击“Framework Search Paths”或“Library Search Paths”,你应该会找到里面列出的虚假路径,你可以将其删除。
回答by fisher
I was able to solve it. Easy fix. For other stumbling upon this problem just edit the Framework Search Paths and add quotation marks to words with space.
我能够解决它。轻松修复。对于此问题的其他绊脚石,只需编辑框架搜索路径并为带空格的单词添加引号。
I.e: /Users/erik/Documents/Xcode/"Hello Friend"
即:/Users/erik/Documents/Xcode/"Hello Friend"