The following are from cocoaChina and ps: In fact, I have not encountered this problem, but I am afraid that I will encounter it later ~ After fixing the bug today and Using simulator for debugging, you are ready to use a real machine for debugging. Which of the following statements does not work? xcode only provides a prompt: finished running MyProj on My Phone. I just remembered that I just updated the iOS SDK to iOS5 and Xcode to 4.2, because there was no problem with debugging on the real machine before, that is, there was a problem today, so it must be the problem with iOS5, let's talk about it. Look:
(Note: This is not my original, do not dare to take advantage of, special reference link: http://stackoverflow.com/questions/7760946/possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk)
1. Change the ubuntures in the Architecture field of the target "Build Setting" to "armv6 armv7".
2. Change the valid architecture to armv6 armv7.
3. Change iOS Deployment Target to iOS4.2.
4. If there is require device capabilities in plist, delete it. If not, forget it.
For iPhone 3G phones, the firmware can only be upgraded to 4.2.1. Therefore, in order to debug the new xCode4.2 + iOS5.0,
So I found this article on the Internet and got help. Special excerpt for emergency purposes.
(Http://www.cocoachina.com/bbs/read.php? Tid = 79860)
1. Change the ubuntures in the Architecture field of the target "Build Setting" to "armv6armv7".
2. Change the valid architecture to armv6 armv7.
3. Change iOS Deployment Target to iOS4.2.
4. If there is require device capabilities in plist, delete it. If not, forget it.