【发布时间】:2013-09-26 20:45:59
【问题描述】:
从 XCode5/ios7 开始,在验证我的应用程序时,我现在在由 xcode 自动生成的选择器上收到验证警告。搜索我的源代码后,我没有看到任何令人担忧的东西。有没有其他人遇到过这个?
@interface User (CoreDataGeneratedAccessors)
- (void)addMatchesObject:(Match *)value;
- (void)removeMatchesObject:(Match *)value;
- (void)addMatches:(NSSet *)values;
- (void)removeMatches:(NSSet *)values;
- (void)addNotificationsObject:(Notification *)value;
- (void)removeNotificationsObject:(Notification *)value;
- (void)addNotifications:(NSSet *)values;
- (void)removeNotifications:(NSSet *)values;
@end
更新
令人惊讶的是,我重构了我的代码以使用 addMatchesObject: 而不是 addMatches,并且验证警告消失了。 ....dafuq?
【问题讨论】:
-
什么是用户的子类?看起来不管它是什么,它都有一个你不小心撞到的私人匹配 ivar。
-
@EricLeaf 只是一个标准的自动生成的
@interface User : NSManagedObject
标签: ios core-data app-store-connect xcode5