The recently-released SArchiveKit is a Cocoa framework to create and extract XAR archives. It supports archive signature, background file extraction, subdocument, and more. It is available under the MIT license.
The site has recently been updated. You may notice some of the following issues: