Xcode can build for emulator, but not for device or archive


#1

I have an ionic app in the ios app store and today I’m trying to publish an update.

I can select an emulator in xcode and build just fine. However, when I try to select a device and build it fails. Also, running ionic run ios works just fine.

I’m getting the following errors, maybe somebody has experienced the same before.

I have a feeling this has something to do with 32 vs 64 bit and some plugins not being ready for 64, can that be right? Building apps with ionic is a breeze, but getting it deployed and messing around with countless xcode settings makes things really unenjoyable. Wish there was a way to make this process easier.

UPDATE: removing “arm64” from the list of architectures solves this problem, but I have no clue what the consequences will be. Is this the way to “solve” this?


#2

From what I gather from apple docs, Xcode can build 64bit and 32bit binaries for same app ( Prior to xcode 5.1 this needed a min sdk version of 7). Removing arm64 architecture will build on 32 bit binary. There shouldn’t be any serious consequences if we run a 32 bit binary on 64 bit computing device.


#3

Thanks, do you think removing the arm64 from the architecture list is the recommend way of solving this problem? My guess would be that some plugins are causing this? I’m using the following plugins in my app:

cordova plugins
com.ionic.keyboard 0.0.1 "Keyboard"
org.apache.cordova.camera 0.3.3 "Camera"
org.apache.cordova.console 0.2.8 "Console"
org.apache.cordova.device 0.2.9 "Device"
org.apache.cordova.file 1.3.1 "File"
org.apache.cordova.file-transfer 0.4.7 "File Transfer"
org.apache.cordova.geolocation 0.3.10 “Geolocation”