Using APIs is fair use. If you can avoid using Apple code to do so, or only minimal ones, like headers, then I think you would be in the clear. See Google vs Oracle. IANAL of course and personally I wouldn't pursue this.
It's likely that in order to avoid distributing Apple IP one would need to reverse engineer some undocumented APIs, but that's coincidental.