Solutions for problems that cannot be debugged in the iOS5 + XCode4.2 environment of iPhone 3G and 3Gs + iOS4.2.1

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.