Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7776249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:50:01+00:00 2026-06-01T17:50:01+00:00

I have an Xcode (4.3.2) project with the latest SDK which I would like

  • 0

I have an Xcode (4.3.2) project with the latest SDK which I would like iOS 4.0 users to be able to run. So in project settings I have set the Deployment Target value to iOS 4.0. It is the same in the Targets settings.

However, I just realized my code is using an iOS 5+ API call. This one:

[self.tabController.tabBar setBackgroundImage:tabBackground];      //Invalid in iOS 4.x ???

The compiler is not giving me any warnings. Shouldn’t it??? What will this do when executed on an iOS 4.0 device? Sadly, I don’t have one to test on currently. This makes me extremely worried that there are other places where the same thing is happening and my program is now hopelessly tied to iOS 5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:50:02+00:00Added an answer on June 1, 2026 at 5:50 pm

    The compiler will not warn you about those things unless you explicitly set the “base sdk” setting of your project to a lower iOS version.

    Unfortunately the latest Xcode version does not seem to include any iOS SDKs prior to version 5.1, so you can’t select 4.0 there. I would suggest keeping a second install of Xcode 3.x that comes with the iOS 4.0 SDK, and use that to make sure you aren’t using methods from newer SDK versions. Finally, if you are really serious about iOS development and supporting 4.0 is a must for you (why?), you should test on a device that hasn’t been upgraded to iOS 5.0 yet (e.g. older iPod touch off ebay..).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now I have a Xcode project which is built for iOS 5, but now
I'm developing an iOS app with XCode 4.2 and latest SDK. I have added
I'm developing an iOS 4 application using latest SDK and XCode 4.2. I have
I have an Xcode project with several static library dependancies set up in the
I have an old Xcode project which contains a CoreData model (containing a version
I have an Xcode project which builds a Cocoa desktop Browser application. My Browser
I have an Xcode project with a mac target and an iOS target. The
I have an Xcode project which basically loads and parses a xml file which
In my iOS project using Xcode 4.2, all targets are showing Latest iOS (iOS
I'm developing an iOS 4 with latest iOS SDK and XCode 4.2. I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.