Skip to content
Realm is a mobile database: a replacement for Core Data & SQLite
Objective-C Objective-C++ Swift C++ Shell Ruby Other
Find file
Latest commit cab9e23 @jpsim jpsim update for jazzy 0.6.0
Failed to load latest commit information.
.github [ISSUE_TEMPLATE] Point out how to share confidentally
Configuration Fix running the tests for the static framework with Xcode 7.3.
Realm.xcodeproj Revert "temporarily remove TestHost app to allow testing on CI"
Realm Merge pull request #3401 from realm/jp/enhancement/improve-property-t…
RealmSwift-swift2.0 deprecate `-[RLMRealm removeNotification:]`
docs remove trailing '/' from link tags in custom_head.html
examples add GettingStarted.playground to examples README
plugin Added compatibility UUID for Xcode 7.3
scripts make Swift 2.2 new default Swift version
tools Added a README in the original location of the Realm Browser project.
.dir-locals.el Project specific Emacs settings updated: Always show trailing white-s…
.gitattributes Do a union merge on the CHANGELOG
.gitignore track Swift version used to compile Realm Swift
.swiftlint.yml update to pass validation with SwiftLint 0.7.2
.travis.yml use Xcode 7.3 Travis image
CHANGELOG.md Merge pull request #3400 from realm/jp/enhancement/deprecate-realm-re…
CONTRIBUTING.md * fixed broken link within the document to #cla
LICENSE [README][LICENSE] added Crimea to list of prohibited regions
README.md drop mention of Xcode 6.3 support in README
Realm.podspec Merge pull request #3227 from realm/mr-fix-podspec
RealmSwift Switch from Swift 2.0 to Swift 2.1
RealmSwift-swift2.1 Add support building on Swift version 2.1
RealmSwift-swift2.1.1 Add support building on Swift version 2.1.1
RealmSwift-swift2.2 add Swift 2.2 symlinks
RealmSwift.podspec rename cocoapods-setup 'without-core' argument to 'swift'
build.sh update for jazzy 0.6.0
logo.png ai logo

README.md

Realm

Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS & OSX versions of Realm, for both Swift & Objective-C.

Features

  • Mobile-first: Realm is the first database built from the ground up to run directly inside phones, tablets and wearables.
  • Simple: Data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues. Plus, we've worked hard to keep our API down to just 4 common classes (Object, Array, Results and Realms) and 1 utility class (Migrations): most of our users pick it up intuitively, getting simple apps up & running in minutes.
  • Modern: Realm supports relationships, generics, vectorization and even Swift.
  • Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set.

Getting Started

Please see the detailed instructions in our docs to add Realm Objective-C or Realm Swift to your Xcode project.

Documentation

Realm Objective-C

The documentation can be found at realm.io/docs/objc/latest.
The API reference is located at realm.io/docs/objc/latest/api.

Realm Swift

The documentation can be found at realm.io/docs/swift/latest.
The API reference is located at realm.io/docs/swift/latest/api.

Getting Help

  • Need help with your code?: Look for previous questions on the #realm tag — or ask a new question. We activtely monitor & answer questions on SO!
  • Have a bug to report? Open an issue. If possible, include the version of Realm, a full log, the Realm file, and a project that shows the issue.
  • Have a feature request? Open an issue. Tell us what the feature should do, and why you want the feature.
  • Sign up for our Community Newsletter to get regular tips, learn about other use-cases and get alerted of blogposts and tutorials about Realm.

Building Realm

In case you don't want to use the precompiled version, you can build Realm yourself from source.

Prerequisites:

  • Building Realm requires Xcode 6.4-7.2.
  • Building Realm documentation requires jazzy

Once you have all the necessary prerequisites, building Realm.framework just takes a single command: sh build.sh build. You'll need an internet connection the first time you build Realm to download the core binary.

Run sh build.sh help to see all the actions you can perform (build ios/osx, generate docs, test, etc.).

Executing the examples under the examples/ folder, requires that you have built the Realm.framework.

Contributing

See CONTRIBUTING.md for more details!

License

Realm Objective-C & Realm Swift are published under the Apache 2.0 license.
The underlying core is available under the Realm Core Binary License while we work to open-source it under the Apache 2.0 license.

This product is not being made available to any person located in Cuba, Iran, North Korea, Sudan, Syria or the Crimea region, or to any other person that is not eligible to receive the product under U.S. law.

Feedback

If you use Realm and are happy with it, all we ask is that you please consider sending out a tweet mentioning @realm, announce your app on our mailing-list, or email help@realm.io to let us know about it!

And if you don't like it, please let us know what you would like improved, so we can fix it!

analytics

Something went wrong with that request. Please try again.