How Single App Binary Supports 64-bit and 32-bit Apps

后端 未结 6 742
栀梦
栀梦 2021-01-31 06:25

We can see apple announcement here.. According to this doc, we can submit same binary with supporting 32-bit and also 64-bit. I found one stack overflow answer here. But Accordi

6条回答
  •  别那么骄傲
    2021-01-31 06:37

    The program xcode 5 compiled contained two binary code:32-bit and 64 bit.In the 32-bit system will call the 32-bit code.In the 64-bit system will call the 64-bit code. At the same time, think about same program only have 32-bit code, the 64-bit system contained two framework:a 32-bit, a 64-bit.When the 64-bit system running the 32-bit program will call the 32-bit framework for the underlying support, running the 64-bit program will call the 64-bit framework for the underlying support.More detail you can see Apple's official documentation "64-Bit transition Guide for Cocoa Touch".

    Use xcode 5 can be easily compiled program into 64.The basic procedure is as follow.

    1. Set the support device into 'ios7'

    2. The "Architectures" in "Build Setting" changed to "Standard Architectures (including 64-bit)".

提交回复
热议问题