Validate JSON files in your Xcode project
XcodeValidateJson is a Ruby script that validates all JSON files within your Xcode project
Installation & Usage
- Copy the XcodeValidateJson.rb script to the root of your Xcode project
- Create a New Run Script Phase and add the following
By default the validator will treat all malformed json files as errors, causing your build to fail.
Pass in warn as an argument to treat these as warnings only.
Download now from GitHub
This is my first real attempt at Ruby, so I welcome all feedback/pull requests for improvements or added features
Next steps are to add file & folder exclusions (as Unit Tests in your project may need to test against a malformed JSON file….)