RealmSwift:没有这样的模块"RealmSwift" [英] RealmSwift: No such module 'RealmSwift'

查看:129
本文介绍了RealmSwift:没有这样的模块"RealmSwift"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将RealmSwift 1.0.0 Latest Using Docs配置为Xcode项目.安装后,我创建了一个类文件并收到模块错误-如:类文件中没有此类模块'RealmSwift'.

I configured RealmSwift 1.0.0 Latest Using Docs into the Xcode project. After installation i created a class file and getting module error - like: No such module 'RealmSwift' in class file.

1.

2.

3.

4.

  1. 添加Realm插件后,我创建了一个类,并在下面获取模块错误.

请帮助我解决此错误.

推荐答案

似乎您已将RealmSwift.framework的路径添加到框架搜索路径. Realm Swift安装说明表示要添加父路径到框架搜索路径的RealmSwift.framework(即包含目录).

It looks like you've added the path to RealmSwift.framework to your framework search paths. The Realm Swift installation instructions say to add the parent path of RealmSwift.framework (i.e., the containing directory) to your framework search paths.

这篇关于RealmSwift:没有这样的模块"RealmSwift"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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