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

查看:27
本文介绍了未找到外部框架 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 or Preprocessor Issue 错误,提示 'Parse/Parse.h' file not found.' 但这里是项目中的截图并添加到库中:

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: warning: 找不到选项的目录',但仍然没有.

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 not found"的原因是我的项目名称包含空格.(对于项目名称,我指的是您在创建新项目时输入的产品名称,它决定了您文件夹的名称.)第一天一切顺利,但是在关闭并打开 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.

要解决此问题,您可以转到 Build Settings -> Search Paths -> Framework Search 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.)

另请注意,带有 #import 的桥头标头不是强制性的:您可以简单地执行 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天全站免登陆