Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 13, swift 5.6 , simple codable struct model always show Type 'User' does not conform to protocol 'DefaultsSerializable' #292

Open
zangqilong198812 opened this issue Apr 28, 2022 · 3 comments

Comments

@zangqilong198812
Copy link

截屏2022-04-28 11 17 40

I use cocoapods install SwiftyUserDefaults, and the version is 5.3
I'm really confused.
but If i implementation the DefaultsSerializable, it works.
截屏2022-04-28 11 19 23

@absolutvodka8888
Copy link

absolutvodka8888 commented May 4, 2022

// Xcode 13.3.1 require

extension UserCodable: DefaultsSerializable {
    static var _defaults: DefaultsCodableBridge<UserCodable>
    { return DefaultsCodableBridge<UserCodable>() }
    
    static var _defaultsArray: DefaultsCodableBridge<[UserCodable]>
    { return  DefaultsCodableBridge<[UserCodable]>()}
}

@bardonadam
Copy link

bardonadam commented May 10, 2022

I have the same issue. This isn't required in the earlier XCode versions...

@ShoMasegi
Copy link

👀
#285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants