{"action":"created","issue":{"url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/1","labels_url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/1/comments","events_url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/1/events","html_url":"https://github.com/Danappelxx/SwiftMongoDB/issues/1","id":104915037,"number":1,"title":"List of Collections","user":{"login":"matfur92","id":10245779,"avatar_url":"https://avatars.githubusercontent.com/u/10245779?v=3","gravatar_id":"","url":"https://api.github.com/users/matfur92","html_url":"https://github.com/matfur92","followers_url":"https://api.github.com/users/matfur92/followers","following_url":"https://api.github.com/users/matfur92/following{/other_user}","gists_url":"https://api.github.com/users/matfur92/gists{/gist_id}","starred_url":"https://api.github.com/users/matfur92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matfur92/subscriptions","organizations_url":"https://api.github.com/users/matfur92/orgs","repos_url":"https://api.github.com/users/matfur92/repos","events_url":"https://api.github.com/users/matfur92/events{/privacy}","received_events_url":"https://api.github.com/users/matfur92/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-04T15:38:50Z","updated_at":"2015-10-12T09:24:29Z","closed_at":"2015-09-09T07:57:32Z","body":"Hi, I would connect my mongodb directly to my iPhone to explore every collection and add/edit/remove every document.\r\nI can't find a method to have a list of databases and collections.\r\nI would have a method that have the same role as\r\n- show databases\r\n- show collections\r\nIt's possible?\r\nThanks in advance\r\nMatteo"},"comment":{"url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/comments/147346347","html_url":"https://github.com/Danappelxx/SwiftMongoDB/issues/1#issuecomment-147346347","issue_url":"https://api.github.com/repos/Danappelxx/SwiftMongoDB/issues/1","id":147346347,"user":{"login":"matfur92","id":10245779,"avatar_url":"https://avatars.githubusercontent.com/u/10245779?v=3","gravatar_id":"","url":"https://api.github.com/users/matfur92","html_url":"https://github.com/matfur92","followers_url":"https://api.github.com/users/matfur92/followers","following_url":"https://api.github.com/users/matfur92/following{/other_user}","gists_url":"https://api.github.com/users/matfur92/gists{/gist_id}","starred_url":"https://api.github.com/users/matfur92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matfur92/subscriptions","organizations_url":"https://api.github.com/users/matfur92/orgs","repos_url":"https://api.github.com/users/matfur92/repos","events_url":"https://api.github.com/users/matfur92/events{/privacy}","received_events_url":"https://api.github.com/users/matfur92/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T09:24:29Z","updated_at":"2015-10-12T09:24:29Z","body":"Hi! One of my friends suggested a workaround to have swiftMongoDB functioning. Here are the steps\r\n\r\nOpen workspace\r\n\r\n1. remove use_frameworks! from PodFile\r\n\r\n2. add ```pod 'mongo-c-driver'``` on Podfile and run pod install\r\n\r\n3. add 2 new module (cocoa framework). One for SwiftyJSON e one for\r\nswiftMongoDB\r\n\r\n3. copy in files of this pods and add (dragging) in Xcode\r\n\r\nIn MongoDBManager (Name of main project):\r\n\r\n4. in swiftMongoDB add on General > Linked Frameworks and Libraries :\r\n``` \"SwiftyJSON.framework\" and \"libPods-MongoDBManager.a\"```\r\n\r\n5. Add on swiftMongoDB > Build Settings > Other Linked Flags this string:\r\n```-l\"libbson\" -l\"mongo-c-driver\"```\r\n\r\n6. Add on swiftMongoDB > Build Settings > Objective-C Bridging Header this string:\r\n```swiftMongoDB/swiftMongoDB-Bridging-Header.h```\r\n\r\n7. Add on swiftMongoDB > Build Settings > Header Search Paths this strings:\r\n```\"${SRCROOT}/Pods/Headers/Public/libbson/bson\"```\r\n```\"${SRCROOT}/Pods/Headers/Public/mongo-c-driver/mongoc\"```\r\n\r\nIn Pods subproject: > mongo-c-driver > Build Settings > Header Search Paths add another line :\r\n```\"${PODS_ROOT}/Headers/Public/libbson/bson\"```\r\n\r\nI know this is not the solution for cocoapods but I posted in the event was useful for someone until you find a solution.\r\n\r\nAs for the issue static libraries I think I understand what you mean. I do not know if it can be helpful, but I found this link : https://github.com/hpique/Talks/blob/master/Building%20Swift%20frameworks/Building%20Swift%20frameworks.md ."}}