sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 365 forks source link

XCode 11.4 + 5.0.0 not indexing #242

Closed jadiaconu closed 4 years ago

jadiaconu commented 4 years ago

Hello,

My project was not indexing and was hanging on build after some Apple Update (Xcode version is 11.4). I've disabled Pod by Pod and SwiftyUserDefaults last version was causing the issue. I've downgraded to 4.0.0 and all is fine.

Most likely there is a cycle, or some line that the indexer doesn't like. I'll try to build the project to see if any warning is shown.

Thanks

jadiaconu commented 4 years ago

The library on its own doesn't have any problem or warning (tag 5.0.0). Maybe I have some conflict in my project.

sunshinejr commented 4 years ago

Hey @jadiaconu, thanks for reporting. Did you see #239 maybe? Or maybe it was all fine in Xcode 11.3 and then you updated to Xcode 11.4 and it started causing problems?

jadiaconu commented 4 years ago

No, I didn't see it. The issue happened after the 11.4 update and never before. I'll check that issue and tell you if it helps.

Thank you

sunshinejr commented 4 years ago

@jadiaconu ah in that case I guess there is another problem with Swift compiler in this release... If the #239 doesn't help, can you copy/paste here how do you use SwiftyUserDefaults? I would love to help and release a patch version.

jadiaconu commented 4 years ago

239 helps, it was the changes from 4.0 to 5.0.

Thank you and good job

sunshinejr commented 4 years ago

@jadiaconu this is awesome to hear, glad you figured it out!