{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3075","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3075/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3075/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3075/events","html_url":"https://github.com/realm/realm-cocoa/issues/3075","id":125399462,"number":3075,"title":"encryption failed.\"Unable to open a realm at path .....\"","user":{"login":"github2016a","id":11831837,"avatar_url":"https://avatars.githubusercontent.com/u/11831837?v=3","gravatar_id":"","url":"https://api.github.com/users/github2016a","html_url":"https://github.com/github2016a","followers_url":"https://api.github.com/users/github2016a/followers","following_url":"https://api.github.com/users/github2016a/following{/other_user}","gists_url":"https://api.github.com/users/github2016a/gists{/gist_id}","starred_url":"https://api.github.com/users/github2016a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github2016a/subscriptions","organizations_url":"https://api.github.com/users/github2016a/orgs","repos_url":"https://api.github.com/users/github2016a/repos","events_url":"https://api.github.com/users/github2016a/events{/privacy}","received_events_url":"https://api.github.com/users/github2016a/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/Help","name":"Help","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mrackwitz","id":1389011,"avatar_url":"https://avatars.githubusercontent.com/u/1389011?v=3","gravatar_id":"","url":"https://api.github.com/users/mrackwitz","html_url":"https://github.com/mrackwitz","followers_url":"https://api.github.com/users/mrackwitz/followers","following_url":"https://api.github.com/users/mrackwitz/following{/other_user}","gists_url":"https://api.github.com/users/mrackwitz/gists{/gist_id}","starred_url":"https://api.github.com/users/mrackwitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrackwitz/subscriptions","organizations_url":"https://api.github.com/users/mrackwitz/orgs","repos_url":"https://api.github.com/users/mrackwitz/repos","events_url":"https://api.github.com/users/mrackwitz/events{/privacy}","received_events_url":"https://api.github.com/users/mrackwitz/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2016-01-07T14:02:08Z","updated_at":"2016-01-11T15:46:07Z","closed_at":null,"body":"i have updated xcode to 7.2,and realmswift 0.97.0\r\nbut when i do encryption on a existed realm with data ( may generated before 0.97.0), like \r\n\r\n        try! realmOld.writeCopyToPath(newRealm,encryptionKey: getKey())\r\n\r\n when i open the new realm using getKey() , i will always get \r\n\"Error Domain=io.realm Code=2 \"Unable to open a realm at path .....\"\r\nseems the key is not right, but i am sure that i am using the same key. \r\n\r\ni donot know why. the encryption seems ok before i update to realmswift 0.97.0."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/170592129","html_url":"https://github.com/realm/realm-cocoa/issues/3075#issuecomment-170592129","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3075","id":170592129,"user":{"login":"github2016a","id":11831837,"avatar_url":"https://avatars.githubusercontent.com/u/11831837?v=3","gravatar_id":"","url":"https://api.github.com/users/github2016a","html_url":"https://github.com/github2016a","followers_url":"https://api.github.com/users/github2016a/followers","following_url":"https://api.github.com/users/github2016a/following{/other_user}","gists_url":"https://api.github.com/users/github2016a/gists{/gist_id}","starred_url":"https://api.github.com/users/github2016a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github2016a/subscriptions","organizations_url":"https://api.github.com/users/github2016a/orgs","repos_url":"https://api.github.com/users/github2016a/repos","events_url":"https://api.github.com/users/github2016a/events{/privacy}","received_events_url":"https://api.github.com/users/github2016a/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T15:46:07Z","updated_at":"2016-01-11T15:46:07Z","body":"@mrackwitz i have send the data to help@realm.io, you can check it when you have time, if there is any problem please let me know, thanks very much!"}}