Normally I would take the โI'm not a lawyerโ route, but Apple is really understandable in its license. You can do whatever you want very well. You can, of course, use it in your products in any of the ways that you probably have in mind, and Apple encourages you to do so. The only limitations they actually have are standard BSD-style things: donโt judge us, donโt say that you are part of Apple, and โif you redistribute Apple Software in its entirety and without changes, you must save this notice ... "(so do not remove their notice and do not post the source code on your website and do not pretend to write it).
Apple's sample code license is in the same area with BSD and MIT. Very reclined; easy to follow.