With this command you should be worth
ionic build ios --device --release
But you need a build.json file in the root of your project like this
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"provisioningProfile": "UUID-del-provisioning-profile-de-desarrollo"
},
"release": {
"codeSignIdentity": "iPhone Distribution",
"provisioningProfile": "UUID-del-provisioning-profile-de-distribucion"
}
}
}
To get the UUID I open the .mobileprovision in a text editor and search for 'UUID', I do not know if there is another way to find it
Make sure to use Xcode 7, because with Xcode 8 right now there are problems (If you have both installed, with the command xcode-select -p
you see if it points to 7 or 8 and with xcode-select -s /ruta/a/Xcode7/Xcode7.app
you change it, and if you no longer have 7 download it from the Apple developer website)