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

  • Home
  • SEARCH
  • 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 6775189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:52:38+00:00 2026-05-26T15:52:38+00:00

I had created a project using base sdk 5.0 in xcode 4.2. While creating

  • 0

I had created a project using base sdk 5.0 in xcode 4.2. While creating the project, I had not checked all 3 options that are displayed, when we create the new project on iOS 5.0, namely. storyboard, use ARC and include unit tests. After writing my code, I want to run this on xcode 3.2.5/ iOS 4.2, but it gives an error because iOS 5 uses @autoreleasepool instead of NSAutoreleasePool. How will I run it on iOS4.2

  • 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-05-26T15:52:39+00:00Added an answer on May 26, 2026 at 3:52 pm

    How about using the old main.m?

    #import <UIKit/UIKit.h>
    
    int main(int argc, char *argv[])
    {
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        int retVal = UIApplicationMain(argc, argv, nil, nil);
        [pool release];
        return retVal;
    }
    

    Another thing. “storyboards” and “ARC” are only supported in iOS 5. So this will be a problem too if you want to run this in iOS4.

    summary:
    if u want backward compatibility write your program on the lowest version you want to support and it will be fine. use old main.m, retain instead of strong and no storyboards or ARC and it works on iOS >= 4.

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

Sidebar

Related Questions

On my previous machine I had IIS6 installed and created a web project using
I had created a framework for a project in the past that one of
i had setup Pylons v0.9.7, and created a project using genshi. I tried to
What I'm doing: I'm working in Xcode, and started using Git not that long
OK, here is how to re-create the problem had: Create a new project, using
Doug McCune had created something that was exactly what I needed ( http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/ )
I have a smallish utility library I made that I had created in TFS
I'm creating a game in Flash CS4 and using Actionscript 3.0. I'm adding all
I am trying to run a simple Java project. I had created a project
I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which

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.