I ran across the following crash while using one of our apps.
The app crashes since the recent iOS 17 beta builds.
The code crashes when using valueForKey on an NSArray with objects that implement NSCopying.
like: [@[[Sample new]] valueForKey:@"copy"];
or: [[Sample new] valueForKey:@"copy"];
header:
@interface Sample : NSObject<NSCopying>
- (Sample *)copy;
- (Sample *)copyWithZone:(nullable NSZone *)zone;
@end
implementation:
@implementation Sample
- (Sample *)copy {
return [super copy];
}
- (Sample *)copyWithZone:(nullable NSZone *)zone {
return self;
}
@end
Any idea why this might be happening?
I have created a feedback too: FB12819891