Latest 0.0.9
Homepage https://github.com/IngmarStein/SMJobKit
License Apache License, Version 2.0
Platforms osx 10.9, requires ARC
Frameworks ServiceManagement, Security
Authors ,

Using SMJobBless and friends is rather …painful. SMJobKit does everything in its power to
alleviate that and get you back to writing awesome OS X apps.

SMJobKit is more than just a framework/library to link against. It gives you:

  • A Xcode target template for SMJobBless-ready launchd services, completely configured for proper
    code signing!

  • A client abstraction that manages installing/upgrading your app’s service(s).

  • A service library that pulls in as little additional code as possible. Less surface area for
    security vulnerabilities!

Project Configuration

To get started, pull the SMJobKit project into your own project or workspace. Have your application
depend on the SMJobKit framework, and hit build. In addition to building the framework, this also
causes the Xcode template to install its self into ~/Library/Developer/Xcode/Templates.

Next, you should set up your service helper/target: Add a new SMJobKit Service target to the
project. This is relatively configuration-heavy, so you should probably build it right away to make
sure everything is properly configured (and your code signing certificates are in order). You may
want to review the template’s documentation
for an in-depth explanation of what it is doing for you.

Finally, you need to add a Copy Files build phase to your application target. The destination
should be "Wrapper" with a subpath of Contents/Library/LaunchServices. Add the service’s built
product to the list. Make sure you add a dependency on your service target!

And, hopefully, that’s all you need to do in order to configure your project!

Client Abstraction

You’ll want to create a subclass of Client in your application, and override
serviceIdentifier at the very least.

Latest podspec

{
    "name": "SMJobKit",
    "version": "0.0.9",
    "summary": "Framework that simplifies SMJobBless.",
    "homepage": "https://github.com/IngmarStein/SMJobKit",
    "authors": {
        "Ian MacLeod": "[email protected]",
        "Ingmar Stein": "[email protected]"
    },
    "source": {
        "git": "https://github.com/IngmarStein/SMJobKit.git",
        "tag": "0.0.9"
    },
    "platforms": {
        "osx": "10.9"
    },
    "source_files": "Sources/**/*.{h,swift}",
    "frameworks": [
        "ServiceManagement",
        "Security"
    ],
    "requires_arc": true,
    "public_header_files": "Sources/*.h",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE.txt"
    },
    "description": "Using SMJobBless and friends is rather ...painful. SMJobKit does everything in its power to alleviate that and get you back to writing awesome OS X apps.nnSMJobKit is more than just a framework/library to link against. It gives you:n- A Xcode target template for SMJobBless-ready launchd services, completely configured for proper code signing!n- A client abstraction that manages installing/upgrading your app's service(s).n- A service library that pulls in as little additional code as possible. Less surface area for security vulnerabilities!"
}

Pin It on Pinterest

Share This