I pulled a lot of hair out trying to figure out how to use GKGoals and GKBehaviors in Apple's GameplayKit. Here's an app that will help you figure it out, hopefully in less time than it took me.
I hope to have it running at least at alpha quality by mid February 2018.
(Back to the drawing board. Who knows when I'll have this done?)