It seems I was able to do a 64-bit build by explicitly specifying the cordova-ios version to use.
First I tried to add <engine name="ios" spec="~4.3.0"/>
to the config.xml but that didn’t seem to work.
Second I added it to the package.json:
"cordovaPlatforms": [
{
"platform": "ios",
"version": "4.3.0",
"locator": "ios"
}
],
This seemed to do the trick and force ionic to build with both. But I can’t say for sure if only the package.json is enough or if you need to specify both (or if the commands cordova platform update ios
and ionic platform update ios
work as well)
To check what’s in your build you can try (at least on osx):
unzip YOUR_BUILD.ipa -d ./tmp
file ./tmp/YOUR_APP.app/YOUR_APP
This should list a bunch of stuff hopefully like this:
tmp/Payload/YOUR_APP.app/YOUR_APP: Mach-O universal binary with 2 architectures: [arm_v7: Mach-O executable arm_v7] [arm64]
tmp/Payload/YOUR_APP.app/YOUR_APP (for architecture armv7):
tmp/Payload/YOUR_APP.app/YOUR_APP (for architecture arm64): Mach-O 64-bit executable arm64
on the 32 bit only build you’ll get just Mach-O executable arm_v7
if you see both you should be good.