When I debug using Xcode my code works perfectly fine, but when I try the same thing using the terminal through Xcode it doesn\'t even run my code it only opens up a termina