OSX POSIX open() does not work until Arduino serial monitor is started

I am new to OSX

Is that why you didn't post any code? That's not a good excuse.