开发者

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

开发者 https://www.devze.com 2023-04-12 21:20 出处:网络
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 c

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 wi开发者_JAVA百科th 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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号