I recently released an open source game controller framework that wraps Apple's Game Controller framework, and provides the ability to easily create software-based controllers that operate using the MFi profiles. Additional features include controller forwarding, motion, watchOS and tvOS support, custom elements and mapping, and more.
https://github.com/robreuss/VirtualGameController
I hope you'll find it helpful!
Thanks,
Rob