{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/2080","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2080/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2080/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2080/events","html_url":"https://github.com/realm/realm-cocoa/issues/2080","id":87923351,"number":2080,"title":"App Crash on Launch with Encrypted Realm","user":{"login":"rathasok7","id":12868794,"avatar_url":"https://avatars.githubusercontent.com/u/12868794?v=3","gravatar_id":"","url":"https://api.github.com/users/rathasok7","html_url":"https://github.com/rathasok7","followers_url":"https://api.github.com/users/rathasok7/followers","following_url":"https://api.github.com/users/rathasok7/following{/other_user}","gists_url":"https://api.github.com/users/rathasok7/gists{/gist_id}","starred_url":"https://api.github.com/users/rathasok7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rathasok7/subscriptions","organizations_url":"https://api.github.com/users/rathasok7/orgs","repos_url":"https://api.github.com/users/rathasok7/repos","events_url":"https://api.github.com/users/rathasok7/events{/privacy}","received_events_url":"https://api.github.com/users/rathasok7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T04:00:08Z","updated_at":"2015-06-13T04:34:26Z","closed_at":"2015-06-13T04:34:25Z","body":"Am using encrypted realms on 0.93.1. when debugging with Xcode, the app launch fine. But when i stop the debug and disconnect the cable, then launch the app, it crash. the app crash  when instantiate realm:\r\nrealm = [RLMRealm realmWithPath:realmPath encryptionKey:key readOnly:YES error:&error];\r\n\r\nThread 0 crashed with ARM Thread State (32-bit):\r\n   r0: 0x00000008    r1: 0x00000000      r2: 0x34cefbc9      r3: 0x00326314\r\n   r4: 0x1909b950    r5: 0x17fe9160      r6: 0x357fe6d8      r7: 0x005e76b8\r\n   r8: 0x1840a000    r9: 0x1909b950     r10: 0x190e2e70     r11: 0x00000001\r\n   ip: 0x37a631ec    sp: 0x005e7590      lr: 0x34d09a37      pc: 0x00089a5e\r\n cpsr: 0x60000030\r\n\r\nI set the Enviroment to: REALM_DISABLE_ENCRYPTION = YES.\r\nIs there any setting i miss?\r\nrunning test on iPhone 4s, iOS 8.1.2"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/111668903","html_url":"https://github.com/realm/realm-cocoa/issues/2080#issuecomment-111668903","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2080","id":111668903,"user":{"login":"rathasok7","id":12868794,"avatar_url":"https://avatars.githubusercontent.com/u/12868794?v=3","gravatar_id":"","url":"https://api.github.com/users/rathasok7","html_url":"https://github.com/rathasok7","followers_url":"https://api.github.com/users/rathasok7/followers","following_url":"https://api.github.com/users/rathasok7/following{/other_user}","gists_url":"https://api.github.com/users/rathasok7/gists{/gist_id}","starred_url":"https://api.github.com/users/rathasok7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rathasok7/subscriptions","organizations_url":"https://api.github.com/users/rathasok7/orgs","repos_url":"https://api.github.com/users/rathasok7/repos","events_url":"https://api.github.com/users/rathasok7/events{/privacy}","received_events_url":"https://api.github.com/users/rathasok7/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T04:34:25Z","updated_at":"2015-06-13T04:34:25Z","body":"I think i found the issue. stupid me, i turn on REALM_DISABLE_ENCRYPTION = YES when creating a encrypted realm. I have to recreate the encrypted without the flag, then everything is ok. "}}