{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/817","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/817/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/817/events","html_url":"https://github.com/realm/realm-cocoa/issues/817","id":40633428,"number":817,"title":"'Unsupported predicate value type', reason: 'Object type any not supported'","user":{"login":"JAManfredi","id":2100155,"avatar_url":"https://avatars.githubusercontent.com/u/2100155?v=3","gravatar_id":"","url":"https://api.github.com/users/JAManfredi","html_url":"https://github.com/JAManfredi","followers_url":"https://api.github.com/users/JAManfredi/followers","following_url":"https://api.github.com/users/JAManfredi/following{/other_user}","gists_url":"https://api.github.com/users/JAManfredi/gists{/gist_id}","starred_url":"https://api.github.com/users/JAManfredi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JAManfredi/subscriptions","organizations_url":"https://api.github.com/users/JAManfredi/orgs","repos_url":"https://api.github.com/users/JAManfredi/repos","events_url":"https://api.github.com/users/JAManfredi/events{/privacy}","received_events_url":"https://api.github.com/users/JAManfredi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-08-19T20:31:13Z","updated_at":"2015-01-16T05:33:17Z","closed_at":"2014-08-19T21:36:02Z","body":"*** Terminating app due to uncaught exception 'Unsupported predicate value type', reason: 'Object type any not supported'\r\n\r\nI cant quite figure out why this exception is happening, it doesnt make much sense to me, but here is what I can find. The first query is the one that is breaking, the second one works fine, the only difference is that one property is set up as a String in the database, the other an Int.\r\n\r\n            let predicate: NSPredicate = NSPredicate(format: \"item_id = %@\", \"1234\")\r\n            let returnedArray: RLMArray = Obj.objectsWithPredicate(predicate)\r\n\r\n            let predicate: NSPredicate = NSPredicate(format: \"sort_id = %i\", 1234)\r\n            let returnedArray: RLMArray = Obj.objectsWithPredicate(predicate)\r\n\r\nIm running Xcode 6 beta 6."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/70210359","html_url":"https://github.com/realm/realm-cocoa/issues/817#issuecomment-70210359","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/817","id":70210359,"user":{"login":"jayesh15111988","id":6687735,"avatar_url":"https://avatars.githubusercontent.com/u/6687735?v=3","gravatar_id":"","url":"https://api.github.com/users/jayesh15111988","html_url":"https://github.com/jayesh15111988","followers_url":"https://api.github.com/users/jayesh15111988/followers","following_url":"https://api.github.com/users/jayesh15111988/following{/other_user}","gists_url":"https://api.github.com/users/jayesh15111988/gists{/gist_id}","starred_url":"https://api.github.com/users/jayesh15111988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayesh15111988/subscriptions","organizations_url":"https://api.github.com/users/jayesh15111988/orgs","repos_url":"https://api.github.com/users/jayesh15111988/repos","events_url":"https://api.github.com/users/jayesh15111988/events{/privacy}","received_events_url":"https://api.github.com/users/jayesh15111988/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T05:33:17Z","updated_at":"2015-01-16T05:33:17Z","body":"@jpsim  Thanks for responding back. You are right that it was a problem with single quote for the given statement. However, this was one the many ways I tried to fix the problem. \r\n\r\nBut it seems problem was in the model representation where I overlooked that property should be explicitly initialized with empty string. So,\r\n\r\ndynamic var tag: String = \"\" //will work\r\ndynamic var tag: String! //Won't work, crash with *** Terminating app due to uncaught exception 'Unsupported predicate value type', reason: 'Object type any not supported'\r\n\r\nThough we declare the property as String, we still need to assign initial value. Is that a bug or a specific feature that I am not aware of?"}}