hmlongco / Resolver

Swift Ultralight Dependency Injection / Service Locator framework
MIT License
2.14k stars 187 forks source link

Code completion issues after adding Resolver as a SPM (Xcode 13.2) #145

Closed nashfive closed 2 years ago

nashfive commented 2 years ago

Hi,

I've set up a brand new SwiftUI project. Code completion for property wrappers (such as @StateObject) works fine. After I install the Resolver dependency, it doesn't work anymore. I tried cleaning & rebuilding, removing DerivedData, restarting Xcode, etc. Code completion after a @ character only show the Resolver property wrappers:

Screenshot 2021-12-19 at 13 01 36

Typing @St won't show any code completion:

Screenshot 2021-12-19 at 13 02 24

Removing the Resolver package fixes it.

I am not sure that it's a specific problem to Resolver or something related to Xcode 13.2, or something else...

Can anyone reproduce this?

nashfive commented 2 years ago

After doing some research and reinstalling previous Xcode versions, it seems that Xcode versions 13.2 and 13.1 (to a lesser extent) introduce issues with code completion. Reverting back to 13.1 was enough to "fix" the problem for me. Sorry for the noise.

(Damn it Apple 😤)