{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/426fe85acfb2126ec7d32709a35ee801?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"426fe85acfb2126ec7d32709a35ee801","url":"https://api.github.com/users/pmilosev","login":"pmilosev","id":288658},"assignee":null,"updated_at":"2011-11-01T00:13:36Z","labels":[],"closed_at":null,"comments":4,"url":"https://api.github.com/repos/gabriel/gh-unit/issues/26","body":"Hi\r\n\r\nI've been working with the Security framework for iPhone and provided some unit tests for my wrappers around it.\r\n\r\nI have noticed that when starting the unit tests from simulator (or device) there are no failed tests, however when starting the tests from command line some of the tests fail.\r\nIf the simulator is started (just started without any app loaded) and run the tests from command line again all the tests fail.\r\nThe error code shows that the keychain is missing.\r\nFurther investigation showed that the simulator uses a file placed somewhere into the application bundle to simulate the keychain, and the file is present even when simulator is not started.\r\nFinally I have compared the environment, with and without simulator, and everything seams to be exactly the same (also all non-system paths are the same - no links created or something).\r\n\r\nSo my final guess would be that the simulator is making some initialization by modifying the system (either creating some system files/links or adding virtual devices).\r\n\r\nIf possible it would be nice if the complete environment can be simulated also when running the tests from command line.\r\n\r\nregards\r\n\r\np.s. NOTE that some of the Security API is not meant to be working under simulator at all, so pay attention not to go the wrong way into debugging those methods :)","html_url":"https://github.com/gabriel/gh-unit/issues/26","title":"iPhone Security framework requires simulator to be started even when running tests from command line","number":26,"id":367888,"created_at":"2010-10-18T08:38:27Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/d65e95f1dac9f1940fb69031f14b1200?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d65e95f1dac9f1940fb69031f14b1200","url":"https://api.github.com/users/ilya","login":"ilya","id":4327},"updated_at":"2011-11-01T00:13:36Z","url":"https://api.github.com/repos/gabriel/gh-unit/issues/comments/2585275","body":"Has anyone had any luck with this lately?","id":2585275,"created_at":"2011-11-01T00:13:36Z"}}