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 9258831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:30:26+00:00 2026-06-18T12:30:26+00:00

This question is for iOS 5 with Xcode 4.2. That’s what I am running

  • 0

This question is for iOS 5 with Xcode 4.2. That’s what I am running for iOS development.

I have download a sample project from git hub InstaOverlay and when I look at its target it says “6.0” so I switched it to 5.0 and tried compiling the code. I wasn’t able to go very far as you can see from my screenshot. Tons and Tons of errors.

So my question is, is there a problem with the code itself or projects that are made for iOS 6 can never be made to run on iOS 5? I thought users are able to make apps backward compatible?

Any suggestions

enter image description here

  • 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-18T12:30:27+00:00Added an answer on June 18, 2026 at 12:30 pm

    General answer

    Yes, apps can be made backwards compatible with iOS5 or earlier. “Can be” being the important catch here — doing so can be very time consuming, depending on what your application does, what APIs it uses, etc. On the other handle, quite simple projects can just work, if they use very standard APIs available without much change since the beginning of (iOS) time.

    Obviously if your app uses iOS6 only features, you’re stuck. Otherwise, yes, you can do it, but be prepared to take time doing so — not only writing/alterting code, but testing it.

    So as far as you’re concerned, yes, the project is ‘broken’, by which we mean not written for older versions of iOS. If only it were as simple as changing a project setting!

    Here’s a few strategies for making backwards-compatible apps:

    • Where variants on an API exist, with different methods having different compatability, use the most compatible variants. For example, some NSFileManager methods appeared in newer versions of iOS, but older variations will still work. Apple tend to willy-nilly publish source code (IME) that uses the newer code without any proviso about “BTW, this won’t work on older versions of iOS” so care is needed

    • If you want to make some functionality only appear on newer iOS versions, you need to do a run-time check that the desired methods/APIs are available, and only use them when they are. In these cases you also need to be careful linking your project and ‘weak link’ some items.

    • If you really need iOS3 compatability, you can’t use ARC; it has to be old-style memory management. iOS4 supports ARC, but a few runtime limitations: auto-nilling of references isn’t supported.

    Movie playing is a classic example of newer and better APIs being available but older APIs still being around. The older MPMoviePlayerController was pre-iOS4, then MPMoviePlayerViewController appeared in iOS4 (note the word ‘view’ — it’s a fully fledged UIViewController). Typically you want to use the latter, but for iOS3 compatability you’d decide to use the former based on a runtime check.

    Specific answer

    Your problem with CV_XADD: this looks like a preprocessor definition that is #defined somewhere but the compiler isn’t picking it up. For a hint, try looking for the definition of CV_XADD by searching for #define CV_XADD. IF you can’t find that, try looking for just CV_XADD and looking for a definition in all the results.

    Have you tried googling for the terms ‘CV_XADD expected expression’? I get a number of hits relating to this problem.

    Your project is using C++ which adds some more complexity to the mix!

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

Sidebar

Related Questions

I have a Jenkins job set up that builds my iOS Xcode project and
I'm a newbie at iOS development and this is my first question on SO.
I have an iOS application that has a TestFlight build scheme. In this scheme
First, I am super-new to Objective-C/iOS development and, in fact, this question is for
fairly new to Objective-C and iOS development (coming from PHP) and I have a
A newbie question. I have Xcode 3.2.6 and my ipad is iOS 6.0. It
This question is mainly about protecting the content inside my iOS app. I intend
I'm developing an iOS 4 application. This question is related to UIImageView, setClipsToBounds and
This is an iOS question. I build a static library (a framework in iOS)
yes this is an iOS programming question. I need to calculate the exact time

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.