Skip to content

Teach your computer to take screenshots of your app so you don't have to anymore. Tools to automate making iOS screenshots.

Notifications You must be signed in to change notification settings

usepropeller/KSScreenshotManager

 
 

Repository files navigation

KSScreenshotManager

Teach your computer to take screenshots of your app so you don't have to anymore. This project simplifies the process of creating automated screenshots of your iOS app. Some assembly is required, as you need to define your screenshots. Once you do that, this code will take care of the rest.

See this blog post for more details: http://ksuther.com/2013/02/24/automating-ios-app-store-screenshots

Adding this to your project

  1. Include KSScreenshotManager in your project. Adding it as a submodule is probably the easiest way to do this. Be sure to check out the WaxSim submodule as well by running git submodule update --init
  2. Add KSScreenshotManager.h, KSScreenshotManager.m, KSScreenshotAction.h, KSScreenshotAction.m to your project
  3. Subclass KSScreenshotManager and override setupScreenshotActions
  4. Copy config.json.example and customize to suit your project

Example project

An example project is located in Example (surprise!). It has a very simple KSScreenshotManager subclass named MyScreenshotManager. You can run it with the following command:

python make_screenshots.py config.json.example

This will compile the sample project, WaxSim, then use WaxSim to run the simulator build and dump the screenshots to /tmp/screenshots.

Make sure that you've checked out WaxSim as a submodule by running git submodule update --init after cloning this repository, otherwise make_screenshots.py won't work.

License

MIT License

Copyright (c) 2013 Kent Sutherland

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Teach your computer to take screenshots of your app so you don't have to anymore. Tools to automate making iOS screenshots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 76.3%
  • Python 23.7%