Contents

Updating your app from 32-bit to 64-bit architecture

Ensure that your app behaves as expected by adapting it to support later versions of the operating system.

Overview

In iOS 11 and later, all apps use the 64-bit architecture. If your app targets an earlier version of iOS, you must update it to run on later versions.

Update your app to the latest SDK

Begin by updating your existing app to iOS 11 or later. By updating your app first, you can remove deprecated code paths, address any compiler warnings, and search your code for specific 64-bit issues.

  1. Install the latest version of Xcode and open your project. Xcode prompts you to modernize the project. Modernizing adds new warnings and errors that are important when compiling your app for 64-bit architecture.

  2. Update your project settings to support the latest version of iOS. You can’t build a 64-bit project if it targets an iOS version earlier than iOS 5.1.

  3. Change the Architectures build setting in your project to Standard Architectures.

  4. Update your app to support the 64-bit runtime environment. The new compiler warnings and errors help guide you through this process.

  5. Test your app on actual 64-bit hardware. Don’t rely on the Simulator app. Although it can be helpful during development, some changes, such as the function-calling conventions, are visible only when your app is running on a device.

  6. Tune your app’s memory performance by using Instruments.

Audit your code

It’s critical that you review your code for proper pointer usage. Assumptions in pointer sizes can lead to erratic behavior and even crashes. Focus on the following areas:

With pointer usage addressed, your app should be stable and you can focus on performance and optimize accordingly:

Topics

Memory and pointer access

Performance and accuracy

See Also

Architecture