Ci_Cd

Xcode iOS CICD

Prerequisites

  • Microsoft VSTS
  • Xcode IDE
  • Mac OS
  • iOS Device
  • Microsoft App Center
  • Ftp server

Creation

This article is just a template of iOS Xcode IPA generation, I haven’t really got time to sit down and document my process last time I had chance to deploy an iPA directly to ad-hoc organization. I would love to work on this cheatsheet again when I get Apple developer account which allows me to create provisioning profiles and sign iPAs for Ad-hoc distribution. Though I could maybe just utilize my freemium apple developer account, may need to deep dive on that one.

Step 1

Open your Project_Name.xcodeproj file from finder or Xcode recent items. Select main project_name & in general check for any errors or warnings if any.

Step 2

Check the App Bundle Identifier to match your Apple developer provisioning profiles or certificates. If you select "Automatically manage signing" it gets a bit easier or else the old way to signing each component respectively also works fine.

Automatic Signing

Automatic Signing Kautilya

If you select manual version do add the appropriate profiles & distribution certificates to the Apple Keychain. Always choose allow for Keychain / Xcode as every time you build apps to run on physical devices aside from simulator.

Manual Signing

Manual Signing Kautilya

iOS requires you to run signed code, you cannot run unsign code unless you're bypassing the installation methods or have a jailbroken device.

Step 3

Select Generic iOS Device in select device screen.

Select Generic iOS Device

select_Generic_iOS_Device Kautilya

After you have selected your Xcode should show up like this.

Selected generic device

selected generic device Kautilya

Archiving Button & progress

Product archive

product_archive Kautilya

Archive progress started

archive_progress Kautilya

Archive progress succeeded

archive_progress succeeded Kautilya

Step 4

Use Xcode menu bar Window -> Organizer

Window Organizer

window_organizer Kautilya

After that new window will pop up & then select export button at the right sidebar.

Export Organizer

export_organizer Kautilya

A new window will pop up & select the option Development & press Next.

Organizer Development

organizer_development Kautilya

Choose the following options as depicted in the screenshot & press Next.

Organizer Development Options

organizer_development_options Kautilya

Choose the following options as depicted in the screenshot & press Next.

Organizer Development Certificate

organizer_development_certificate Kautilya

Step 5

Export from Xcode to Finder Choose the Export button from Organizer window.

Organizer iPA Success

organizer_ipa_success Kautilya

Select the location for iPA export in finder & click Export button.

Export finder

export_finder Kautilya

Navigate to that folder & copy that iPA file to your desired application.

Step 6

Profit ??

:grin:

Author : Kautilya Save

GitHub

Medium