在Xcode 7.1中没有这样的模块使用Swift进行解析 [英] No such module Parse using Swift in Xcode 7.1

查看:72
本文介绍了在Xcode 7.1中没有这样的模块使用Swift进行解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经有几个问题可以解决此问题,但是(我认为)所有这些问题都涉及使用Objective-C桥接头连接框架的Parse的早期版本.我正在使用直接支持Swift的最新版本的Parse,这是一个不同的设置过程.

There are several questions addressing this issue already, but all of them (I think) are in reference to earlier versions of Parse using an objective-C bridging header to connect the framework. I am using the latest version of Parse that has support for Swift directly, which is a different setup process.

我已经下载了解析并将解析添加到Build Phases-> Link Binary With Libraries中的Xcode.他们网站上的说明非常简单...下载SDK,将其添加到Xcode,导入并完成.

I've downloaded and added Parse to Xcode in the Build Phases -> Link Binary With Libraries. The directions on their website are extremely straightforward...download the SDK, add it to Xcode, import it, and done.

似乎应该在任何地方正确添加解析:

Parse seems to be added properly everywhere it should be:

但是,当我使用import Parse时,出现了no such module错误.我尝试以递归和非递归方式在Build Settings下添加框架搜索路径$(PROJECT_DIR),以及其他一些针对该问题的建议,但都没有运气.

But alas, when I use import Parse, I get a no such module error. I've tried adding the framework search path $(PROJECT_DIR) under Build Settings both recursively and non-recursively, and a few other recommendations from the other questions addressing this issue, but with no luck.

我想知道这可能是Parse或Xcode beta的问题,因为两者都是非常新的,但是我假设错误就在我身旁,只是不完全确定从哪里开始,因为快速入门指南在Parse.com看起来很简单.

I'm wondering if this could be an issue with Parse or the Xcode beta, since both are extremely new, but I'm assuming the error is on my end, just not exactly sure where to look since the quickstart guide on Parse.com seemed so simple.

推荐答案

显然,如果将分析库拖到与二进制库链接"部分,将继续出现此错误.

Apparently if you drag the Parse library to the 'Link with Binary Libraries' section, you will continue to get this error.

您必须将Parse拖到项目导航器中才能正确导入.

由于无论您将其拖动到Xcode中的哪个位置都可以工作,因此Xcode 7.1 beta或更新的Parse API for Swift支持可能存在问题.我不确定,但是无论哪种方式,这都是一个非常简单的修复,所以没什么大不了的.

Since it should work regardless of where you drag it into Xcode, it is possible this could be a problem with the Xcode 7.1 beta or the updated Parse API for Swift support. I'm not entirely sure, but either way, it's a really simple fix, so not a big deal.

这篇关于在Xcode 7.1中没有这样的模块使用Swift进行解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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