I've got xcode 10.1 and mojave 10.14 and solve it by build to Legacy Build System (as you mentioned) but also when my app ran, it triggered the OS to open an accessibility window for that app. I removed the current app association with - and re-added it.