I know that this question is a possible duplicate, but even after looking at some Google tutorials and questions even on this forum none of them gives me a decent answer about t
try const char *command = [str UTF8String];
const char *command = [str UTF8String];