Skip to content

quadion/iOSValidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Quadion Logo

What is this?

This is a set of scripts (currently only one) written in Ruby to be used in continuos integration (for example using Jenkins) to compile iOS projects.

validateProvisioningProfile.rb

This scripts helps validate that a given provisioning profile was signed with a given developer certificate, exported as a p12 file.

Why is this useful?

We compile our applications using Jenkins and distribute them OTA using TestFlight. It turns out that when running xcodebuild to generate the build, you can sign it with a certificate that doesn't match the provisioning profile you are using. Even worse, the binary will be accepted in TestFlight, and fail when you try to install it.

Usage

The script accepts the following parameters:

--certificate (-c): path to a p12 certificate.
--profile (-p): path to a mobileprovision provisioning profile.
--password (-P): optional password for the p12 certificate.

Explanation

Provisioning profiles are PKCS7 signed messages. The message itself is an XML plist. The script extracts the plist, and within it looks for the certificate information. The public key in the provisioning profile is then compared to the public key in the certificate file.

About

Validations scripts for iOS projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages