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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:32:59+00:00 2026-06-13T23:32:59+00:00

I opened an old iOS project, old as in 2010 iOS 3 stuff, and

  • 0

I opened an old iOS project, old as in 2010 iOS 3 stuff, and found it crashing on launch. The exception is:

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'

I have messed around with the project now for a few hours trying to track down what is causing it. I feel that I have exhausted my wits and resources, short of re-doing large parts of the app from scratch. Any ideas on what might be the cause?

The results of my investigations:

The project is a fresh git checkout of what is live in the AppStore. Yes, the app is simple enough to still run fine without any updates at all for 2 years.

I changed to make it compile was changing the base SDK from 4.1 (no longer available in Xcode) to iOS6 and hit run. Target is still 3.0 in the project settings.

I checked that I do not call or implement initWithCoder anywhere in my code. The line in my code that is indicated is just the call to UIApplicationMain() in main.m which does not help me much.

The app is just 3 views. Main, Detail and About. It looks like MainView or MainViewController contains the problem. I conclude from the app not crashing when I: 1.Choose to not add it to the NavigationController at launch. 2.Choose to add the AboutController instead.

I suspect the problem is the Xib file rather than the controller or view code because I can init the MainViewController with the AboutView Xib and have the app launch.

I wonder if I can “fix” this Xib or if I have to create a new one and re-layout the GUI elements? Which is my only way forward I fear. The app mis simple but it would still take some time to re-layout the main (and most dense) view. Also, I would prefer to know what the problem is rather than just starting over and possibly ending up in the same situation again one day.

Am I at all on the right track? Is there a way to track down the offending code or GUI widget?

Thanks in advance for any advice.

Update: After re-creating the basics of the UI in a new Xib and using that one the app works. Still like to know if I could fix the old one by changing some setting or other in it.

  • 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-13T23:33:00+00:00Added an answer on June 13, 2026 at 11:33 pm

    I can think of two possibilities that can cause this, the .xib file has some formatting problem, or you are using a depreciated object in this .xib, so the SDK no longer has the particular initWithCoder: method the .xib requires.

    To cause Xcode to rewrite the file, and probably fix any formatting problems, change the document version. In Xcode select the .xib file and show the file inspector tab of the utilities pane to access the version setting.

    For the other possibility I would perform a manual binary search of your .xib for the offending object. Delete half of the objects and run the app. If it worked you deleted the bad object(s). I’m sure you get the idea. There may be more than one such bad object, but you should be able to find one fairly quickly, figure out how to update it, and then fix the other similar objects.

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

Sidebar

Related Questions

I've opened up some old iOS code and when I try to build it
today I just opened my 1,5 month old project and wanted to add a
I just opened some old code in the current Eclipe Juno Release Candidate and
I'm using old DAO 3.6 to connect Access database (with mde extension). App works
i opened a project and edited it and then i opened another copy of
I have an old post Re-Installing IPhone App From Inside The App That old
I have a C++ project created in VS6 that was opened in VS2010 and
This question appeared when I recently opened a rather old driver for my raid
I've opened an old workspace that is a library and its test harness. It
I just installed the latest version of F#, and opened an old solution to

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.