Following the official guide: http://ionicframework.com/docs/v2/setup/installation/
- Register the repository on bitrise.io
- As bitrise.io can't auto recognize Ionic projects right now, it's best to select the Configure manually without project scanning option in the Validation setup section during the setup
- In the Project build configuration section select Other / Manual to make bitrise to generate a very minimal workflow - we'll replace this right away anyway.
- In the Stack selector:
- For Android builds: select the Android & Docker, on Ubuntu 16.04 option.
- For iOS builds: select the right Xcode x.x.x, on macOS option (the same Xcode version you use on your Mac).
- Make sure that you don't .gitignore the
platforms/
directory (it's in.gitignore
by default if you generated the project withionic start ProjectName --v2
).- For Android this is actually optional, and you can distribute your app without this, but for iOS you'll have to do this.
- Actually you'll have to remove additional
.gitignore
entries:platform/
www
plugins
- And the default
.gitignore
in the generatedplatform/android
by default is incorrect,/build
should be replaced withbuild/
, and.gradle
should be added.
- Make sure that you don't .gitignore the
platforms/
directory (it's in.gitignore
by default if you generated the project withionic start ProjectName --v2
). - Open the ios workspace (
platforms/ios/ProjectName.xcworkspace
) - Turn off the Automatically manage signing option, then turn it back on
- This is an issue with how Ionic generates the Xcode project code signing settings
- Set the Team
- In the top Device selector select Generic iOS Device
- Do an Archive in Xcode
- Fix any other issue you might have, until you can successfully generate an Archive from Xcode
- Make sure the Scheme is shared!
Either commit the platforms/
directory into your repository (remove it from .gitignore
),
or if you don't want to then you'll have to run cordova platform add android
on any new Mac/PC or in CI, as the platforms/
directory is in the
default .gitignore
which is generated by ionic start ProjectName --v2
.
WIP
- Build Cache