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¶
You could download the project via this link Dicey App Source Code¶
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¶
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¶
After you have selected your Xcode should show up like this.
Selected generic device¶
Archiving Button & progress
Product archive¶
Archive progress started¶
Archive progress succeeded¶
Step 4¶
Use Xcode menu bar Window -> Organizer
Window Organizer¶
After that new window will pop up & then select export button at the right sidebar.
Export Organizer¶
A new window will pop up & select the option Development & press Next.
Organizer Development¶
Choose the following options as depicted in the screenshot & press Next.
Organizer Development Options¶
Choose the following options as depicted in the screenshot & press Next.
Organizer Development Certificate¶
Step 5¶
Export from Xcode to Finder Choose the Export button from Organizer window.
Organizer iPA Success¶
Select the location for iPA export in finder & click Export button.
Export finder¶
Navigate to that folder & copy that iPA file to your desired application.
Step 6¶
Profit ??¶
:grin: