Thanks for the post, I've replied on EMB forums.

By the way, compiling similar project with one edit box, one button and a memo in FPC/Lazarus works without problems on the same Mac, and it does not open terminal window.