-
-
Save stalniy/c8bd7d023e0c7d33ec1c74d5981c1f6b to your computer and use it in GitHub Desktop.
Ionic Build IPA with Fastlane tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
# https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customise this file, documentation can be found here: | |
# https://github.com/KrauseFx/fastlane/tree/master/docs | |
# All available actions: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md | |
# Uncomment the following line to opt out | |
opt_out_usage | |
update_fastlane | |
fastlane_version "1.16.0" | |
default_platform :ios | |
platform :ios do | |
before_all do | |
sigh | |
update_project_provisioning( | |
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 | |
end | |
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) | |
end | |
desc "Deploy a new version to the App Store" | |
desc "** Full Markdown** Support: `code`" | |
lane :deploy do | |
sigh | |
end | |
# You can define as many lanes as you want | |
after_all do |lane| | |
end | |
error do |lane, exception| | |
end | |
end | |
# More information about multiple platforms in fastlane: | |
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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