从 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?