小智 19
您可以将Realm与Swift 3.0一起使用,但要考虑到当前版本仍然是绝对实验性的.
您可以克隆的主分支中的境界可可从GitHub回购.
或者你可以使用迦太基:
github "realm/realm-cocoa.git" "master"
Run Code Online (Sandbox Code Playgroud)
或者如果您更喜欢CocoaPods:
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master'
Run Code Online (Sandbox Code Playgroud)
如果您使用Carthage,请记住您必须手动添加Realm和RealmSwift框架(忽略IBAnimatable框架):

事实上,我有一个我的项目,包括Xcode 8,Swift 3和Realm,它完美地工作:)
从版本1.1.0开始,Realm与Swift 3.0/Xcode 8.0正式兼容.看到这里.
此版本为Xcode 8,Swift 2.3和Swift 3.0提供官方支持.预构建的框架现在使用Xcode 7.3.1和Xcode 8.0构建.
以下是安装文档的摘录:
如果使用Xcode 8,请将以下内容粘贴到Podfile的底部,如有必要,请更新Swift版本:
Run Code Online (Sandbox Code Playgroud)post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' # or '3.0' end end end