找不到外部框架File / File.h(Parse / Parse.h)文件 [英] external framework File/File.h (Parse/Parse.h) file not found

查看:174
本文介绍了找不到外部框架File / File.h(Parse / Parse.h)文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以每当我更新我的应用程序时,Xcode声称即使它在那里也找不到特定的外部框架。它再次发生在Xcode 6和我常用的方法(我相当缺乏经验,所以这些基本上涉及点击和输入事情,直到发生事情(我夸大但不是很多))不起作用。

So every time I update my app, Xcode claims not to be able to find a particular external framework even though it's there. It's happened again with Xcode 6 and my usual methods (I'm fairly inexperienced, so these basically involve clicking and typing things until something happens (I exaggerate but not by much)) aren't working.

我收到 Lexical或Preprocessor Issue 错误,指出'找不到Parse / Parse.h'文件。 但是这里是它在项目中的截图并添加到库中:

I'm getting a Lexical or Preprocessor Issue error that says 'Parse/Parse.h' file not found.' But here are screenshots of it in the project and added to the library:

我还按照'ld:警告:找不到选项的目录'但仍然没有找到。

I also followed the steps in the most upvoted answer at ‘ld: warning: directory not found for option’ but still nothing.

知道该怎么办?有什么想法吗?我在这里撕开我的头发。

Any idea what to do? Any idea at all? I'm tearing my hair out here.

推荐答案

我也有这个错误。我在Swift中开发,所以我添加了一个桥头,如这篇Parse博客文章

I had this error also. I'm developing in Swift, so I added a "bridge header" as described in this Parse blog post.

我得到未找到Parse.h的原因是我的项目名称包含空格即可。 (对于项目名称,我指的是您在创建新项目时输入的产品名称,它决定了您的文件夹名称。)第一天一切顺利,但在关闭并打开Xcode之后,事实证明Xcode将空格分隔的单词解释为不同的路径。

The reason I got the "Parse.h not found" was that my project name contained spaces. (For project name I mean the Product Name you enter when creating a new project, which determines your folder's name.) The first day all went well, but after closing and opening Xcode, it turns out that Xcode interprets the words separated by spaces as different paths.

要解决此问题,您可以转到构建设置 - >搜索路径 - >框架搜索路径,并在每个空格前添加\。 (如果双击该路径,您将看到Xcode将每个单词用空格分隔为不同的条目。)

To fix this, you can go to Build Settings -> Search Paths -> Framework Search Paths and add an "\" before each space. (If you double click the path you'll see that Xcode shows each word separated by space as a different entry.)

还要注意带有<$ c的桥接标题$ c> #import< Parse / Parse.h> 这不是强制性的:你只需要 import Parse

Also note that the bridge header with #import <Parse/Parse.h> it's not compulsory: you can simply do import Parse.

这篇关于找不到外部框架File / File.h(Parse / Parse.h)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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