简体   繁体   中英

Why can't I compile with iPhone OS 3.0 as a deployment target in Xcode 4.2?

I have an iPhone app which was developed with 4.0 as the base SDK and a deployment target of 3.0. Everything was working fine.

Last week I upgraded to Xcode 4.2. Now when I open the existing project, I can't compile with a deployment target of 3.0. It compiles successfully and runs only when the deployment target is 4.0.

I get the following error when I set the target to 3.0:

Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'

The compiler which I use is LLVM 3.0. I am not using ARC.

Should I go back to the 3.x SDK? Is there a way that I can support 3.x using Xcode 4.2?

Uhhh, don't?

That might sound flip but iOS 4 has achieved pretty good penetration. Looking at Intstapaper's data says it really isn't worth it. And the "accepted" answer at this stackover flow answer even suggests just supporting 4.2!

Now, of course, you may have really good reasons for wanting to support 3, perhaps you are working with an Enterprise client who needs 3. In which case, just completely disregard what I've said.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM