Skip to content

Property UUID duplicate(conflict) with other Library :(  #137

@iShawnWang

Description

@iShawnWang

**Awesome Lib, i learn a lot from this project :) ~**

  • I am using a Back-end Service Leancloud which likes Firebase Storage
  • Then i follow README to setup my model class named User, it has a property @property (copy,nonatomic) NSString *avatarPath; to storage the avatar path of user, i implement the FICEntity and there is no compile warning on Xcode .
  • But when i run the app on the simulator , i got following crash on main.m :
2016-07-09 13:07:21.718 PiChat[2538:75333] [ERROR] -[AVObject(Subclass) setValue:forKey:] [Line 2273] Class User may contain a reserved property: UUID, see https://leancloud.cn/docs/ios_os_x_guide.html#AVObject for more infomation.
2016-07-09 13:07:21.794 PiChat[2538:75333] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<User 0x7fba4240a240> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key UUID.'
  • It looks like that Leancloud use property UUID internal which cause conflict with FastImageCache protocol FICEntity , the document of Leancloud announced uuid is reserved ,and my heart sinks ,cause Leancloud doesn't provide English Document :(

So,what should do with this problem ?
Currently ,my solution is to create a child Entity named UserPhoto which implement FICEntity protocol to replace the original property @property (copy,nonatomic) NSString *avatarPath;

Any suggestion on this problem ?
And should FastImageCache rename property UUID in FICEntity with a unique name like FIC_UUID to avoid conflict with other library ,cause UUID is a very common name.

~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions