calljilo.blogg.se

Brew cask install fastlane
Brew cask install fastlane









brew cask install fastlane
  1. BREW CASK INSTALL FASTLANE HOW TO
  2. BREW CASK INSTALL FASTLANE ANDROID

You will need to edit the it to put your app name instead of "My App". My hook also adds the push notification capability but that should be easy enough to remove if you don't need it. The hook we are going to use can be found here: If this pull request has been merged into cordova-ios then this step may no longer be necessary. Opening the project in XCode automatically upgrades the file but we need to do it all from the command line. What this boils down to one of the Fastlane actions we want to use blows up with a fresh ionic cordova prepare because it thinks the XCode project files is too old. We need to modify our platforms/ios/My App.xcodeproj/project.pbxproj but we don't want to have to do it by hand (or by opening XCode) because that would defeat the purpose of a build server and we also don't want to commit this file to git. It should look like this: storeFile=myKeystore.jksįollow the instructions here and put the resulting JSON file in the root of your app repo. Config FileĪlso put this in the root of your app repo. This should be self-explanatory, just put this in the root of your app repo. Play Credentials (play-credentials.json).Config file containing for signing (release-signing.properties).

BREW CASK INSTALL FASTLANE ANDROID

Keystore for signing your Android app (myKeystore.jks).Okay, we are good to move on setting up our Android certs (you can skip if you only want iOS Get credentials/keys for Google Play This will clear out your PP/SC you have for distribution, don't worry, we are going to create new ones right now: fastlane match distribution I know it sounds scary but we are going to start off by running: fastlane match nuke distribution DO NOT WORRY, this will not delete your apps or mess up already uploaded iOS builds (released or otherwise). If you have already created PP/SC in the iOS Dev Center then we need to delete them. Let's start with initializing Match: fastlane match init I'm using a gitlab repo on our self-hosted instance but you can use any private git repo.Īlso I am only using Match to manage distribution PP/SC, you can use it for development PP/SC but I personally don't (I just use XCode automatic signing or that). You also need to create a new git repo to hold the Provisioning Profiles and Signing Certificates (PP/SC). It needs to have the "Admin" role to do everything it does and you probably don't want your build server to have a team members credentials on it. I would suggest you create a new iTunesConnect "Admin" user to let Match run under. With that out of the way let's install Fastlane brew cask install fastlane If you are reading this guide after attempting to setup Fastlane on your own and installed it via Bundler I suggest you uninstall that version, I ran into multiple issues with it. It's better (IMHO) to use the brew cask version which comes with all the correct versions of everything. You can install Fastlane via Bundler but I'm personally not super comfortable with Ruby and I'm not good at debugging issues with it. You are managing your push notification certs (APNS) yourself, if you want to automate that part look into Pem.You have done this the "hard way" before (You have your apps setup in iTunesConnect/Google Play and have uploaded to Testflight and/or Google Play Alpha in the past).You have XCode CLI tools installed xcode-select -install.Setup your Fastfile (think of it like a makefile/gulpfile/etc).Add in hook to "Upgrade" our XCode project file.Setup Match (used to manage provisioning profiles and certificates).I won't promise this is the most efficient way (the double iOS building irks me but I haven't found a away around it yet) or most secure (I'm storing some passwords and certs in the repo and plan to move them out later) but it does work. I'm writing this because I couldn't find any guides that worked for Ionic 2/3 and XCode 9.

brew cask install fastlane

BREW CASK INSTALL FASTLANE HOW TO

While the iOS part of this took the majority of my time (Provisioning Profiles, Certs, XCode project files, etc) this will show you how to setup both iOS and Android. Recently I was tasked with setting up a build server to build our iOS apps automatically on git push to a certain branch.











Brew cask install fastlane