{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/137","repository_url":"https://api.github.com/repos/OpenKitten/MongoKitten","labels_url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/137/comments","events_url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/137/events","html_url":"https://github.com/OpenKitten/MongoKitten/issues/137","id":257894711,"number":137,"title":"Swift Compiler Error ","user":{"login":"viniciusarre","id":20468645,"avatar_url":"https://avatars2.githubusercontent.com/u/20468645?v=4","gravatar_id":"","url":"https://api.github.com/users/viniciusarre","html_url":"https://github.com/viniciusarre","followers_url":"https://api.github.com/users/viniciusarre/followers","following_url":"https://api.github.com/users/viniciusarre/following{/other_user}","gists_url":"https://api.github.com/users/viniciusarre/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciusarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciusarre/subscriptions","organizations_url":"https://api.github.com/users/viniciusarre/orgs","repos_url":"https://api.github.com/users/viniciusarre/repos","events_url":"https://api.github.com/users/viniciusarre/events{/privacy}","received_events_url":"https://api.github.com/users/viniciusarre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-15T00:35:56Z","updated_at":"2017-09-15T08:36:59Z","closed_at":null,"author_association":"NONE","body":"Hello. I'm running xCode 8.3.3 and Swift 3.1 and I'm developing for universal targets.\r\n\r\nEvery time I tried using it (I even followed a tutorial on \"https://medium.com/@joannis.orlandos/setting-up-mongokitten-4-9a8bf8b2ad09\"), I get a Swift Compiler Error in the MongoSocket Target right in this line:\r\n\r\n`guard SSLSetCertificateAuthorities(context, cert, true) == 0`, which is nested in \r\n`\r\n if let path = options[\"CAFile\"] as? String, let data = FileManager.default.contents(atPath: path) {\r\n                    let bytes = [UInt8](data)\r\n                    \r\n                    if let certBytes = CFDataCreate(kCFAllocatorDefault, bytes, data.count), let cert = SecCertificateCreateWithData(kCFAllocatorDefault, certBytes) {\r\n                        guard SSLSetCertificateAuthorities(context, cert, true) == 0 else {\r\n                            throw Error.cannotConnect\r\n                        }\r\n                    }\r\n                }\r\n`\r\n\r\nPlease, could you look into it as soon as possible? I need to integrate this for next week... \r\n\r\nThanks in advance! "},"comment":{"url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/comments/329718943","html_url":"https://github.com/OpenKitten/MongoKitten/issues/137#issuecomment-329718943","issue_url":"https://api.github.com/repos/OpenKitten/MongoKitten/issues/137","id":329718943,"user":{"login":"viniciusarre","id":20468645,"avatar_url":"https://avatars2.githubusercontent.com/u/20468645?v=4","gravatar_id":"","url":"https://api.github.com/users/viniciusarre","html_url":"https://github.com/viniciusarre","followers_url":"https://api.github.com/users/viniciusarre/followers","following_url":"https://api.github.com/users/viniciusarre/following{/other_user}","gists_url":"https://api.github.com/users/viniciusarre/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciusarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciusarre/subscriptions","organizations_url":"https://api.github.com/users/viniciusarre/orgs","repos_url":"https://api.github.com/users/viniciusarre/repos","events_url":"https://api.github.com/users/viniciusarre/events{/privacy}","received_events_url":"https://api.github.com/users/viniciusarre/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T08:36:59Z","updated_at":"2017-09-15T08:36:59Z","author_association":"NONE","body":"Well, I am developing an app which I want to connect with a mongodb database... I got it that I can't compile it to the project directly, but I don't know how not  to... I'm quite new to Swift and I need to get this integration out of the way... "}}
{"actor":{"display_login":"viniciusarre"}}