简体   繁体   中英

.Element Ambiguous use of Element SWXMLHash swift

推送通知教程:从raywenderlich 入门 ,构建启动项目时,错误显示:

.Element Ambiguous use of Element SWXMLHash swift

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM