Welcome to another Code Mill Minute installment! Or where I take a break from writing a long article and write a quick post about a small problem or annoyance that we Xamarin developers happen upon every day.
In this installment we’re going to take a look at a brand new “warning” message that pops up in iOS 10.1 about how our app may slow down an entire iPhone unless the developer improves the app’s compatibility. (Talk about your doom and gloom!)
The underlying issue is that Apple is trying to rid their app ecosystem of 32 bit applications. So although 64 bit applications had be submitted since Feb 1, 2015 – depending on how you had your build options set up, a lot of the time a 32 bit app would be included in the overall app bundle … so there would be one “version” of the app for older 32 bit iPhones and then another “version” for the newer 64 bit ones.
Evidently Apple’s not cool with that any longer.
Easy enough – just have to tell Xamarin Studio (or Visual Studio) which architectures to support within the iOS project’s properties. To get there in Xamarin Studio, double click on the iOS project’s name (or right click and select Options). Then select iOS Build from the left hand menu.
From there, in the Supported Architectures dropdown select “x86_64” if you’re running on the simulator.
Or ARM64 if you’re running on device.
You’ll want to change those for both debug & release configurations – found at the top of the screen.
In Visual Studio, right click on the iOS project and then select properties from the context menu. From there select iOS Build on the resulting popup then the “Advanced” tab.
That’s all there is! Remember that there will not be a 32 bit “app” included in the bundle any longer – so your app won’t work on older hardware. But it’s Apple – that’s the way they want it any way! 🙂