iOS app submission missing 64-bit support
Codemia Knowledge Hub ·
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:
- Use the Latest Xcode Version: Always use the latest version of Xcode, as it automatically enables 64-bit architecture support.
- 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.
- Update Dependencies: Update all third-party frameworks and libraries your app uses to their latest versions if they provide 64-bit support.
- 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.
- 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
- iOS app 'The application could not be verified' only on one device
- iOS app with framework crashed on device, dyld Library not loaded, Xcode 6 Beta
- iOS autolayout to center my view between two views
- iOS Autolayout two buttons of equal width, side by side
- iOS Build Failed at compile time with issue failed to find a suitable device for the type SimDeviceType
- iOS change navigation bar title font and color
- iOS Compare two dates
- iOS Convert UTC NSDate to local Timezone
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.