Ok, after a few days of digging the internet, I came to some kind of solution (I didn't try iOS though). I leave it there if anyone encounters the same issue :
Install Cordova CLI v. 6 :npm install -g cordova@6
Remove cordova-android platform :cordova platform rm android
Add cordova-android v. 6.1.2 :ionic cordova platform add android@6.1.2 --save
Build your package with a valid profilionic package build android --profile <yourProfile>
Hope Ionic will come up with a better solution soon