ld:未找到框架解析 Xcode 7 beta [英] ld: framework not found Parse Xcode 7 beta

查看:34
本文介绍了ld:未找到框架解析 Xcode 7 beta的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功地在我的新项目中安装和使用了 Parse 框架,但我不能使用模板项目".

I succeed to install and use Parse framework with my new project, but I can't with a "template project".

模板只是来自 Appcoda

您可以在此处下载该项目.我有这个错误:

You can download the project here. I have this error :

ld: framework not found Parse
clang: error: linker command failed with exit code 1 (use -v to see invocation)

螺栓也一样.

我不明白问题是什么,最初的项目只是一些视图控制器...

I don't understand what the problem is, the initial project is just some View Controllers...

当我写代码import Parse"时,报错信息是:

When I write the code "import Parse", the error message is :

No such module 'Parse'

我尝试拖放框架,并在Link Binary With Libraries"中添加框架.

I tried to drag and drop the frameworks, and also to add the frameworks in "Link Binary With Libraries".

PS:我使用的是 Xcode 7 beta,我尝试了 beta 1 和 beta 2,同样的问题.

PS : I am using Xcode 7 beta, and I tried on beta 1 and 2, same issue.

推荐答案

解决方案如下:

Xcode 7 beta 似乎存在一个问题,即缺少手动添加框架的搜索路径.

There seems to be an issue with Xcode 7 beta where the search path for manually added frameworks is missing.

要解决此问题,请执行以下操作添加搜索路径:

To fix the issue add the search path by doing the following:

  1. 选择项目
  2. 点击目标
  3. 点击构建设置
  4. 搜索:框架搜索路径
  5. 添加$(PROJECT_DIR) 并选择递归选项.
  1. Select Project
  2. Click on Targets
  3. Click Build Settings
  4. Search for: Framework Search Path
  5. Add $(PROJECT_DIR) and choose Recursive option.

现在应该构建项目.

感谢这篇文章:堆栈链接

这篇关于ld:未找到框架解析 Xcode 7 beta的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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