This is a sample Xcode project for empty iOS application. It allows to quickly and comfortably deploy a workspace for new ready-to-code Xcode project.
Sample project contains following configured features:
- Logic unit testing
- Application unit testing with linking to OCMock library
- Automatic generation of HTML documentation upon app archiving (if you have Appledoc installed)
- Configured logging (by PTNLogger)
- Configured storage (by PTNStorage)
In order to provide unit testing for the classes of your app, you need to complete these steps. They are already configured in this project.
Application unit testing allows to perform unit tests on actual device (or simulator as well). These instuctions are completed in current project and ready to test. Additionaly, you can enjoy using OCMock library functionality in your tests.
Appledoc allows apple-style documentation generation based on comments left in code. It is configured by AppledocSettings.plist file. The script for documentation generation is placed in Documentation target of a project and is executed upon app archiving. Script executes appledoc
command (so it will not work if you don't have appledoc installed on your system) and archives generated HTML documentation folder into .tar.bz file.
Project is configured to use PTNLogger (see PTNArtifacts for more details).
Project is configured to use PTNStorage (see PTNArtifacts for more details).
- Clone PTNSampleProject into folder named corresponds to your new project.
- Run setup.sh script with the name of your project as an argument.
- Start developing
For instance, you are going to start awesome app called SuperApp. Here are steps you need to perform before starting to write code:
$ git clone https://github.com/peetonn/PTNSampleProject SuperApp
$ cd SuperApp
$ ./setup.sh SuperApp
That's it! Now you just open SuperApp.xcworkspace (if you declined to open it from setup.sh script) and Xcode drops you to your new configured ready-to-code environment!
Enjoy your code!