This is the starter project of WenderCast from Push Notifications Tutorial: Getting Started , Because the starter project is built error, I correct it. Finally can run. The correct solution is below.
1. change the SWXMLHash.swift
file from drmohundro/SWXMLHash , for the problem
.Element Ambiguous use of Element SWXMLHash swift
2. correct the code in file PodcastFeedLoader.swift
in line 48 to
let feedItems = items.all.flatMap { (indexer: XMLIndexer) -> PodcastItem? in
let feedItems = items.all.flatMap { (indexer: XMLIndexer) -> PodcastItem? in
,
the origin code is
let feedItems = items.flatMap { (indexer: XMLIndexer) -> PodcastItem? in
The correct the project in github: https://github.com/zgpeace/WenderCast-Starter
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.