我从 Github 获取此内容:\n https://github.com/emilioschepis/techfeed \n当我启动应用程序时,我在控制台中遇到问题:\n无法转换“2011 年 8 月 3 日星期三 09:44:00 + 0200”至今。\n并且我有一个黑屏。
\n我 \xc2\xb4m 使用最新的 xCode 版本并更新代码。\n感谢您的回答....\n
解析器:
\nimport Foundation\n\nclass ReleasesParser: NSObject {\ntypealias CompletionResult = ([Release]) -> Void\n\nprivate static var formatter: DateFormatter = {\n let formatter = DateFormatter()\n formatter.dateFormat = "E, dd MMM yyyy HH:mm:ss z"\n return formatter\n}()\n\nprivate var releases = [Release]()\nprivate var currentElement = ""\nprivate var currentGuid = ""\nprivate var currentTitle = ""\nprivate var currentDescription = ""\nprivate var currentPubDate = ""\nprivate var completion: CompletionResult?\n\nfunc parse(data: …Run Code Online (Sandbox Code Playgroud)