2

I am trying to change the deployment target from 5.1 to 4.2 in Xcode 4.4 and it's not working

  • I downloaded debugging support for 4.1-4.2
  • I set Architecture to armv6 armv7
  • I set in plist armv6 armv7
  • I don't use storyboards
bames53
  • 86,085
  • 15
  • 179
  • 244
Tomasz Szulc
  • 4,217
  • 4
  • 43
  • 79
  • 2
    What isn't working? Does it not compile? Does it decide it doesn't want to downgrade? Does it not run in 4.2? – Dan F Jul 31 '12 at 18:35
  • Sorry. When i compile i get warning: `Xcode cannot run using the selected device (iphone 3g 4.2.1). Choose a destination with a supported architecture in order to run on this device` – Tomasz Szulc Jul 31 '12 at 18:38
  • i change architecture to armv7 and 6, and i've got error: `No such file or directory (/Users/tomkowz/Library/Developer/Xcode/DerivedData/name-ewqeubdkdxvizebssqvbjuojdwqh/Build/Products/Debug-iphoneos/name.app/name)` – Tomasz Szulc Jul 31 '12 at 18:41

2 Answers2

3

It's a known bug. XCode 4.4 doesn't let you target armv6 architecture. You'll have to downgrade to Xcode 4.3.3 to do this (learned it the hard way :-/). You'll have to download 4.3.3 from the Apple dev website.

Also, make sure not to run both 4.4 and 4.3.3 at once. My mac was semi frozen for an hour until I managed to force kill these two processes.

Update: This bug has been fixed in the newer versions of the XCode.

Pika Supports Ukraine
  • 3,612
  • 10
  • 26
  • 42
Nitin Alabur
  • 5,812
  • 1
  • 34
  • 52
1

In case anyone is still affected by this issue, it appears to have been fixed. In Xcode 4.4.1 I do not have this problem. (Specifically, when I set architecture to armv6 armv7, I am able to build for an iPhone 3G running 4.2 - I have not tried other combinations.)

Arkaaito
  • 7,347
  • 3
  • 39
  • 56