在框架内部使用Realm [英] Using Realm inside framework

查看:63
本文介绍了在框架内部使用Realm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能在我的框架内将Realm用作框架,因为Apple拒绝嵌套框架. 但是,在我的框架中将Realm用作Pod代理可能没有问题.还是有问题? 目标C如何成为一个不会发生冲突的单一命名空间?

I can not use Realm within my framework as a framework because apple rejects nested frameworks. However maybe there is no problem in using Realm as a pod depedence within my framework. Or is there a problem? How does objective C be a single namespace I will not have collisions?

在我的框架中,我想捕获GPS坐标. 将Realm用于此文件系统与文件系统相比有什么好处?

In my framework I want to capture GPS coordinates. What is the benefit of using Realm for this versus file system?

谢谢

推荐答案

您正确的是,iOS App Store不允许嵌套动态框架.建议的解决方案是将框架放在应用程序捆绑包中的同一目录级别.

You're correct that the iOS App Store doesn't allow nested dynamic frameworks. The suggested solution is to place frameworks at the same directory level in your app bundle.

使用Realm的好处在官方网站上有详细记录: https://realm.io

The benefits of using Realm are well documented on the official website: https://realm.io

这篇关于在框架内部使用Realm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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