Apple Mach-O 链接器警告 - 框架搜索路径? [英] Apple Mach-O Linker Warning - Framework Search Paths?

查看:51
本文介绍了Apple Mach-O 链接器警告 - 框架搜索路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶然发现了一个恼人的错误:Apple Mach-O 链接器警告.

I've stumbled upon an annoying error: Apple Mach-O Linker Warning.

ld: 警告:找不到选项-F/Users/erik/Documents/Xcode/Hello"的目录

ld: warning: directory not found for option '-F/Users/erik/Documents/Xcode/Hello'

ld:警告:找不到选项-FFriend"的目录.

ld: warning: directory not found for option '-FFriend'.

我的项目文件夹名为Hello Friend".在我的框架搜索路径中,它有 4 行显示:

My Project folder is called "Hello Friend". In my Framework Search Paths it has 4 rows showing:

  • $(继承)
  • /Users/erik/Documents/Xcode/Hello
  • 朋友
  • $(PROJECT_DIR)

由于单词之间的空格,它似乎将Hello Friend"这个词分成了两部分,所以我认为这就是解释?

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?

我尝试将其编辑为

  • $(继承)
  • /Users/erik/Documents/Xcode/Hello Friend
  • $(PROJECT_DIR)

但它跳回来了.

有什么想法吗?

非常感谢!

推荐答案

我能够解决它.轻松修复.对于此问题的其他绊脚石,只需编辑框架搜索路径并为带空格的单词添加引号.

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.

即:/Users/erik/Documents/Xcode/你好朋友"

I.e: /Users/erik/Documents/Xcode/"Hello Friend"

这篇关于Apple Mach-O 链接器警告 - 框架搜索路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆