From 8308245836768650729d17a9159eecb315cfa793 Mon Sep 17 00:00:00 2001 From: Aaron Ash Date: Wed, 10 Jun 2020 18:24:10 +0300 Subject: [PATCH] Fix no known method '-UTF8String'; warning --- lldb_commands/dclass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb_commands/dclass.py b/lldb_commands/dclass.py index 16bc9aa..857a8e3 100644 --- a/lldb_commands/dclass.py +++ b/lldb_commands/dclass.py @@ -1415,7 +1415,7 @@ def generate_class_info(options): for (int i = 0; i < bmeth->count; i++) { NSString *methodType = (int)class_isMetaClass((Class)dsclass) ? @"+" : @"-"; method_t *mt = (method_t*)(&bmeth->first); - [returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", [methodType UTF8String], mt[i].name, mt[i].imp]]; + [returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", (const char *)[methodType UTF8String], mt[i].name, mt[i].imp]]; } if ((int)class_isMetaClass((Class)dsclass) == NO) { dsobjc_class* dsmetaclass = (dsobjc_class*)objc_getMetaClass(name); @@ -1425,7 +1425,7 @@ def generate_class_info(options): for (int i = 0; i < bmetameth->count; i++) { NSString *methodType = (int)class_isMetaClass((Class)dsmetaclass) ? @"+" : @"-"; method_t *mt = (method_t*)(&bmetameth->first); - [returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", [methodType UTF8String], mt[i].name, mt[i].imp]]; + [returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", (const char *)[methodType UTF8String], mt[i].name, mt[i].imp]]; } } }