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
- 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
- Add
KSScreenshotManager.h
,KSScreenshotManager.m
,KSScreenshotAction.h
,KSScreenshotAction.m
to your project - Subclass
KSScreenshotManager
and overridesetupScreenshotActions
- Copy config.json.example and customize to suit your 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.
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.