Apple Support provides a collection of Starlark helpers for rule authors targeting Apple Platforms (and Xcode) as well as some Rules directly.