Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.2 Lion not installing / running project on older devices. iPhone 3G 4.2.1

Tags:

xcode

iphone

gdb

XCode 4.2 Build 4D199 on Lion with iPhone 3G IOS 4.2.1

Project with Base SDK 5.0 and Target 4.2.

On this phone and on older iTouch the debugger never seems to startup. After pushing RUN the project compiles and then the Debug entry is in the Log Navigator with the Spinner Running. The spinner never stops and the app does not get loaded on the iPhone 3G.

Any clues on how to fix. This was working fine before the Lion Upgrade.

Need to test the older devices. Newer devices seem to work fine.

Device seems to be provisioned fine, etc.

like image 695
ort11 Avatar asked Oct 14 '11 15:10

ort11


2 Answers

Probably because armv6 is missing from the architectures for the Target.

Click on your Project in Xcode, then click on the Target. Double-click on 'Architectures', and delete what's current there - probably something like $(ARCHS_STANDARD_32_BIT) - using the '-' button. Next, click on the '+' button and add 'armv7', then add 'armv6'.

Hopefully, that should help.

like image 121
Stuart Tevendale Avatar answered Sep 25 '22 01:09

Stuart Tevendale


I found when I would start a new project in xCode 4.2 (Build 4D199) it would not build to my iPod touch running 4.2.1. While I did have to set my architectures to include armv6, that alone did not do it.

In my project's Info.plist file xCode had set "Required device capabilities" to include 'armv7'. I removed that now everything is working fine.

I hope this helps someone else.

like image 44
NJones Avatar answered Sep 22 '22 01:09

NJones