6

I need to develop an app who support iOS 4 - iOS 7, is it possible to do it on XCode 5.0.2 on Mavericks?

The lowest deployment target xcode provide me is iOS 6.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Blacky
  • 820
  • 1
  • 10
  • 23

3 Answers3

5

In Project > Target > Build Settings > Architectures:

change the Architectures from Standard Architectures (including 64-bit) to Standard Architectures ,or if you want to support older devices, type armv6 armv7 armv7s in Others

Type it

Then, you can change the deployment target to lower versions (just type 4.0 or 4.3 in the Deployment Target box)

But why do you want to target iOS 4 still?

Raptor
  • 53,206
  • 45
  • 230
  • 366
  • 1
    I don't want iOS 4, however I got a contract with a company who want that the app will support iOS 4 god know why. Anyhow thank you for your answer it is much appreciated. One more question, if I'm adding armv6 architectures the app will support IPhone 3g as well? – Blacky Dec 02 '13 at 12:03
  • last question, what about iOS 4 simulator? and again thank you for your answer :) – Blacky Dec 02 '13 at 14:13
  • @Blacky you want to test on Simulator or Real Device? Xcode 5 does not have iOS 4 simulator. – Raptor Dec 03 '13 at 02:37
0

Yes, supporting iOS4 is possible, the problem is supporting ARMv6 (iPhone 3G and iPod Touch 2G). To support ARMv6, you need iOS SDK 5.x with is available in Xcode 4.4. But you also need to support the widescreen iPhone resolution, so you need to use two different Xcode versions for it

Community
  • 1
  • 1
Laszlo
  • 2,803
  • 2
  • 28
  • 33
  • Incorrect. `armv6` is still supported by Xcode 5. Just type the value in the "Architecture" box. – Raptor Dec 02 '13 at 11:45
  • You can't compile it, iOS6.x SDK doesn't support it anymore. – Laszlo Dec 02 '13 at 11:45
  • No. I'm still using it & compile is fine (you can check Qualcomm's Vuforia SDK). They target `iOS 4.0` but I can still compile with Xcode 5. – Raptor Dec 02 '13 at 11:48
  • And it can be installed on an iPhone 3G? Because i also can start the compiled app on an iPhone 3Gs with iOS 4.1, but not on iPod Touch 2G with 4.2.1 – Laszlo Dec 02 '13 at 12:04
  • iPod Touch 2G is [armv6](http://en.wikipedia.org/wiki/ARM11), maybe your deployment target is 4.3 ? or, what is the error ? – Raptor Dec 02 '13 at 12:32
  • i said i could test on my 3Gs with iOS 4.1. It is bigger than 4.3, so that can't be the problem. Are you sure you using iOS SKD 6 and up? http://stackoverflow.com/a/12580494/1293167 – Laszlo Dec 02 '13 at 13:45
0

Try this , You will get the deployement Target till from lowerEnd . Its mainly due to the >XCode 5.0 choses by default architecture as including 64-bit this only supports >IOS 6.0 enter image description here

iPhone 5S is powered by A7 64bit processor. From apple docs

Xcode can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 7 or later.

Note: A future version of Xcode will let you create a single app that supports the 32-bit runtime on iOS 6 and later, and that supports the 64-bit runtime on iOS 7.

Kumar KL
  • 15,315
  • 9
  • 38
  • 60