Automate ionic iOS Build with Teamcity

Recently I worked on  cross-platform mobile ionic project. I automated the whole build process using Teamcity. I am sharing the details here that might help other folks:


Build Step 1: Remove Artifacts

rm -rf *.ipa
rm -rf *.xcarchive

Build Step 2: Install bower components

bower install –allow-root

Build Step 3: Add platform

ionic platform add ios

Build Step 4: Generate resources

ionic resources –splash
ionic resources –icon

Build Step 5: ionic build for ios

ionic build ios

Build Step 6: Allow keychain permission

security -v unlock-keychain -p click2010 ~/Library/Keychains/login.keychain

Build Step 8: Build App

./platforms/ios/cordova/build ios –release –provisioningProfile “a4281fdd-1644-4fe6-8e86-1d31f3eb7f7f”  –codeSignIdentity=”iPhone Distribution: FOLIO3 SOFTWARE, INC.” –device



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s