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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:19:30+00:00 2026-06-06T21:19:30+00:00

Here is the situation. I created a project in xcode 4.2 with deployment target

  • 0

Here is the situation. I created a project in xcode 4.2 with deployment target set as 5.0. but I want to give backward compatibility to my code till 4.0. Now I dont have simulators for 4.2 or 4.0 in xcode 4.2, so i run my code in xcode 4.0. Here I got two errors:

  1. unknown "strong". I removed it by adding retain instead.
  2. unknown "@" in project, so I added below code in main.h 

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;

This is what we generally wrote in main.h before ARC or iOS5

Now another problem which I encountered was that main.h was getting called but AppDelegate was not getting called i.e aplicationDidFinishLaunching was never called. Then I modified the above code to something like this

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass(AppDelegate.class));
[pool release];
return retVal;

Now, I got no problem and the build was successful and it gets compiled in both versions of xcode. I just want to know that why did this happen and is it OK for me to continue with my project with above written main definition in xcode 4.2, because it doesn’t seem good to me.

  • 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-06T21:19:32+00:00Added an answer on June 6, 2026 at 9:19 pm

    Try this. That should answer your question.

    Basically you need to aim for iOS4 first, and it should work with iOS5. The problem is when you start with iOS5 first, because iOS4 doesn’t know the new features. It may seem as a pain, but consider if it is necessary to support iOS4, we have iOS6 now and iOS5 is a majority among all versions…

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

Sidebar

Related Questions

Okay, here's the situation: I've created a class extending Android's SQLOpenHelper class. I've also
So here's is the situation: I've created a custom button that minimizes my WPF
Here is the situation : Some process writes lines into a fifo file (created
Okay, here's the situation: We have a table of about 50 columns (created by
I have a simple situation here. lets face html code first => <form name=geoKey
I use v-usb library for my project. I wrote code and i want compile
Here's the situation… So I've created a Node.js module that acts as an interface
Consider the following situation. I have 3 tables in a resource planning project(created using
Here is my situation. I am part of a project creating a P2P charity
here is my situation. I have created a DataSet, in my projet, that is

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.