I've been trying to use Realm to create a db for my cocos2d game, but can't figure out some problem. I'm using Realm Objective-C 0.92.3 (<https://realm.io/docs/objc/latest/>) since I need my game to work on iOS 7 or later.

I've been using some small code to write and read but somehow it isn't working.

```
     let realm = RLMRealm.defaultRealm()
     var tempo = EnemyDB()
     tempo.damage = 7
     realm.beginWriteTransaction()
     realm.addObject(tempo)
     realm.commitWriteTransaction()
     var temp = EnemyDB.allObjects()

```

Somehow this is returning empty object (temp = RLMResults! Unevaluated query on 0x00007f954708a070), does anyone see any problem?

Thank you for any help

EDIT:

```
import Foundation

class EnemyDB : RLMObject {
     var damage : Int!
}

```