nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 174 forks source link

All Feed Items return a nil pubDate #102

Closed fabianpimminger closed 5 years ago

fabianpimminger commented 5 years ago

I'm having an issue where all feeds (even in the iOS example project, http://images.apple.com/main/rss/hotnews/hotnews.rss) don't have a pubDate in the items.

Is there a known issue here? Any tips what I'm doing wrong?

I'm using the latest Xcode and building for an iOS 13.1.2 device

nmdias commented 5 years ago

Hi, @fabianpimminger

There seems to be some odd bug in Xcode 11, I'm seeing what I believe you're seeing. When I inspect the pubDate and lastBuildDate variables using a breakpoint, they are showing nil.

However, just try and print them out. They are there! So weird...

Screenshot 2019-10-10 at 09 17 56

I'm not sure what's going on here. Anyways, please check the master branch with the latest commit dbc5c8985532f44a831032552cc742c36e686d6c I've added pubDate to the example project.

Thanks

fabianpimminger commented 5 years ago

@nmdias ahhh … thanks! Yes, you're totally right - I just used the inspector to look at the variables. I can confirm that the values are present when printing them out. 👍