{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/967","repository_url":"https://api.github.com/repos/mxcl/PromiseKit","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/967/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/967/events","html_url":"https://github.com/mxcl/PromiseKit/issues/967","id":387531638,"node_id":"MDU6SXNzdWUzODc1MzE2Mzg=","number":967,"title":"Runtime Warnings with PromiseKit/Alamofire GET Request","user":{"login":"Empiezan","id":18102522,"node_id":"MDQ6VXNlcjE4MTAyNTIy","avatar_url":"https://avatars1.githubusercontent.com/u/18102522?v=4","gravatar_id":"","url":"https://api.github.com/users/Empiezan","html_url":"https://github.com/Empiezan","followers_url":"https://api.github.com/users/Empiezan/followers","following_url":"https://api.github.com/users/Empiezan/following{/other_user}","gists_url":"https://api.github.com/users/Empiezan/gists{/gist_id}","starred_url":"https://api.github.com/users/Empiezan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Empiezan/subscriptions","organizations_url":"https://api.github.com/users/Empiezan/orgs","repos_url":"https://api.github.com/users/Empiezan/repos","events_url":"https://api.github.com/users/Empiezan/events{/privacy}","received_events_url":"https://api.github.com/users/Empiezan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-04T23:53:28Z","updated_at":"2018-12-04T23:57:13Z","closed_at":null,"author_association":"NONE","body":"I realize this issue may be off-topic, but I am unable to pin down the exact cause of two runtime warnings that are associated with my PromiseKit/Alamofire GET Request.\r\n\r\nI installed PromiseKit/CorePromise and PromiseKit/Alamofire from Cocoapods.\r\n\r\nI have the following method for performing GET requests with PromiseKit/Alamofire:\r\n\r\n```\r\n    func getRequest<T: Decodable>(url: String, params: Parameters? = nil, type: T.Type) -> Promise<T> {\r\n        \r\n        let headers: HTTPHeaders = [\r\n            \"Authorization\": \"Bearer \" + (SessionManager.shared.credentials?.accessToken ?? \"\"),\r\n            \"Accept\": \"application/json\"\r\n        ]\r\n        \r\n        let requestURL = Server_Url + url\r\n        \r\n        return firstly {\r\n            Alamofire.request(requestURL, method: .get, parameters: params, headers: headers)\r\n                .validate(statusCode: 200..<300)\r\n                .validate(contentType: [\"application/json\"])\r\n                .responseJSON()\r\n            }.map { (arg) -> T in\r\n                let (_, response) = arg\r\n                guard let getData = response.data else {\r\n                    throw NetworkControllerError.NilResultError\r\n                }\r\n                let decodedData = self.decodeJson(data: getData, type: type.self)\r\n                if decodedData == nil {\r\n                    throw NetworkControllerError.DecodingError\r\n                }\r\n                return decodedData!\r\n            }\r\n    }\r\n```\r\n\r\nUsing Xcode's breakpoints, I found that the following runtime warnings would appear directly after the Alamofire request was finished. I realize that other processes might be occurring at the same time on other threads, but I'm not sure how to resolve these issues. Can anyone point me in the right direction?\r\n\r\n```\r\nobjc[24119]: Class _TtGCs23_ContiguousArrayStorageFT_T__ is implemented in both ?? (0x7fdf3b08a870) and ?? (0x7fdf380f5638). One of the two will be used. Which one is undefined.\r\n```\r\nand\r\n```\r\n[framework] CUICatalog: Invalid asset name supplied: ''\r\n```"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/444305427","html_url":"https://github.com/mxcl/PromiseKit/issues/967#issuecomment-444305427","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/967","id":444305427,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDMwNTQyNw==","user":{"login":"mxcl","id":58962,"node_id":"MDQ6VXNlcjU4OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/58962?v=4","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T23:57:13Z","updated_at":"2018-12-04T23:57:13Z","author_association":"OWNER","body":"The first warning is a Swift symbol: https://developer.apple.com/documentation/swift/contiguousarray\r\n\r\nThis suggests you maybe have a build system issue that is causing 2 versions of some swift symbols to be used in your final binary. Not PromiseKit related.\r\n\r\nThe second is related to XCAssets management. Not PromiseKit related."}}
{"actor":{"display_login":"mxcl"}}