*** -[NSTaggedPointerStringCStringContainer retain] called, not supposed to happen

解决办法:

删掉以下代码

#import "NSObject+YYY.h"
#import 

@implementation NSObject (YYY)
+ (void)load{

    Method method1 = class_getInstanceMethod([self class], @selector(init));
    Method method2 = class_getInstanceMethod([self class], @selector(initS));
    method_exchangeImplementations(method1, method2);
}
- (instancetype)initS{
    
    return [self initS];
}
@end

你可能感兴趣的:(ios,xcode,objective-c)