iOS
app submission
64-bit support
Apple App Store
mobile development

iOS app submission missing 64-bit support

Interview Questions practice on Codemia

Over 8,000 real interview questions from top companies, searchable by company and role.

Browse interview questions

Overview

Submitting an iOS app to the App Store involves several technical requirements and guidelines set by Apple. One of the critical technical requirements is the app's support for 64-bit architecture. While this requirement might seem technical or obscure, it is crucial for ensuring optimal performance and future-proofing your application.

Understanding the 64-bit Requirement

Since February 1, 2015, Apple has mandated that all new apps and updates to existing apps submitted to the App Store include 64-bit support. This requirement was driven by the introduction of the A7 chip with the iPhone 5S, Apple's first 64-bit processor. The 64-bit architecture can handle more data at once and perform more complex operations compared to its 32-bit counterpart, enhancing performance, security, and computational capabilities.

Technical Explanation

A 64-bit architecture allows applications to:

  • Utilize wider registers, enabling more efficient data processing.
  • Access more memory; theoretically, 64-bit processors can address up to 16 exabytes of memory.
  • Benefit from enhanced performance, as more computational operations can be performed each clock cycle.

Apps that lack 64-bit support may experience:

  • Limited performance compared to apps that leverage the full potential of modern iOS devices.
  • Compatibility issues with updates of the iOS operating system.
  • Potential security risks due to outdated code structures.

Preparing for 64-bit Support

Ensuring that your app supports 64-bit is essential not just for compliance with Apple's guidelines but also for providing a seamless user experience. Here's how you can verify and add 64-bit support to your app:

  1. Use the Latest Xcode Version: Always use the latest version of Xcode, as it automatically enables 64-bit architecture support.
  2. Check Architectures: Ensure that your app binary includes support for the `arm64` architecture. You can check this in Xcode under your project settings in the Architectures section.
  3. Update Dependencies: Update all third-party frameworks and libraries your app uses to their latest versions if they provide 64-bit support.
  4. Check for Data Type Changes: Some data types like `NSInteger` and `NSUInteger` may change size between 32-bit and 64-bit systems (`32 bits` to `64 bits`). Ensure your code does not have assumptions about data type sizes.
  5. Run Tests: After making the necessary changes, thoroughly test your app on hardware devices that run a 64-bit processor to catch any runtime errors or unexpected behavior.

Sample Code Adjustments

For example, to ensure compatibility across both architectures, you might need to replace any hardcoded 32-bit data structures or logic. Consider the following code adjustment:

Before:


Related reading
Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Track what you have practised

A free account saves your progress, solutions and study plan across every problem on Codemia.

Interview Questions practice on Codemia

Over 8,000 real interview questions from top companies, searchable by company and role.

Browse interview questions

All Rights Reserved.