Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ionic Build IPA with Fastlane tool
app_identifier "com.yourorganization.mytodoapp" # The bundle identifier of your app
apple_id "<You Apple Id>" # Your Apple email address
# You can uncomment any of the lines below and add your own
# team selection in case you're in multiple teams
# team_name "CAMobileApp"
# team_id "Q2CBPJ58CA"
# you can even provide different app identifiers, Apple IDs and team names per lane:
# Customise this file, documentation can be found here:
# All available actions:
# Uncomment the following line to opt out
fastlane_version "1.16.0"
default_platform :ios
platform :ios do
before_all do
xcodeproj: "platforms/ios/MyTodoApp.xcodeproj",
profile: "./AppStore_com.ravishtiwari.mytodoapp.mobileprovision"
gym(scheme: "MyTodoAppSchema", project: "platforms/ios/MyTodoApp.xcodeproj") # Build your app - more options available
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
deliver(beta: true)
desc "Deploy a new version to the App Store"
desc "** Full Markdown** Support: `code`"
lane :deploy do
# You can define as many lanes as you want
after_all do |lane|
error do |lane, exception|
# More information about multiple platforms in fastlane:
export PATH="$PATH:/usr/local/bin"
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
#move to Ionice dir
cd Ionic
#install packages
npm install && bower install
#reset the ionic platform for build
ionic state reset
#Generate resources, such as splash screen, launch icon
ionic resources
ionic platform update ios
#compile the SCSS
gulp sass
#Ionic build
ionic build ios
security list-keychain
#security unlock-keychain -u "/Library/Keychains/System.keychain"
security unlock-keychain -p <PASSWORD_HERE> "/Users/<USER>/Library/Keychains/<KEYCHAIN>.keychain"
cd platforms/ios/
xcrun xcodebuild -list
cd .. && cd ..
#Drive in fastlane
fastlane beta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment