I just cleared a similar issue as OP, except that the compiler crashed on a line of code also named onReturn(), but on a cocoa pod named Closures. This was not an issue until I upgraded my MacOS to Sequoia.
Thanks OP!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: