Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 1.23 KB

Readme.md

File metadata and controls

25 lines (13 loc) · 1.23 KB

#A tool to run xcodebuild with specifying developer identity and provisioning profile

Script written in PHP. It gives you a list of developer identities to select from and automatically finds a *.mobileprovision file for your selection. Or you can enter your credentials in config and script will silently build your app.

Feel free to send me your propositions and improvements.

###How to use

  1. First copy xcodebuildprovisioning.php file into your projects directory (near your *.xcodeproj file). You can enter your identity and provisioning profile filepath, but it is not necessary because the script will prompt you otherwise.

  2. Make it executable: chmod +x xcodebuildprovisioning.php

  3. That's all, run ./xcodebuildprovisioning.php from your project directory.

###Config

Define these constants in your xcodebuildprovisioning.php file to make script run with no prompts.

  1. define('TARGET_SDK', 'iphoneos'); — default SDK to use.

  2. define('DEVELOPER_IDENTITY', ''); — your developer identity in format: "iPhone Developer: Name (XXXX)".

  3. define('PROV_PROFILE_PATH', ''); — full path to provisioning profile.

  4. define('TEAM_IDENTIFIER', ''); — your team identifier in format: "XXXYYYZZZZ", only letters.