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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:29:13+00:00 2026-06-11T21:29:13+00:00

I recently inherited maintenance of a relatively small iOS application. The app was created

  • 0

I recently inherited maintenance of a relatively small iOS application. The app was created by external contractors with very little guidance and oversight. Needless to say it needs “a little” cleaning – I am evaluating whether to redo the entire thing or not.

One thing that got me stumped is a crash in the app whereby the debugger shows “Applications are expected to have a root view controller at the end of application launch”. In the module where this occurs, I researched all UIViews to make sure they are created with a parent (addSubView sets the root view controller, right?) – this seems all prim and proper.

Being rather new to XCode, I am not familiar with facilities that help me figure out what might be going on here. E.g., how can I quickly see/investigate the status of all UIViews created by a module? How can I ‘watch’ a variable just to be alerted when it changes? And in general, is there a best strategy to use to tackle issues like the one I described above?

Sorry to stay a bit vague but I don’t think that publishing a bunch of ugly code helps you to understand the problem better 🙂

  • 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-11T21:29:15+00:00Added an answer on June 11, 2026 at 9:29 pm

    That particular problem happens when the application’s UIWindow doesn’t have a value for its rootViewController property by the time it finishes launching. Take a look in your application delegate file – usually, the root view controller is set on the window there.

    With regards to your more general questions: there are a variety of ways to inspect the state of your program as it runs. A very basic way to dump some info is to use an NSLog statement – you can print out messages to the console in much the same way as a C printf would. You can also set breakpoints in your application and use the debugger to inspect different variables – take a look at the lldb documentation for more info.

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

Sidebar

Related Questions

I've recently inherited an application that makes very heavy use of session, including storing
I recently inherited an iPhone app. The original developer did not understand memory management
I recently inherited an e-commerce app (Java/Struts) that I'm porting to Rails. The thing
I've recently inherited the maintenance of a big, ugly codebase for a production website.
My application I've recently inherited is FULL of deprecation warnings about the constructor: Date
I have recently inherited a J2EE Struts web app that was written back in
Recently I inherited a database from another programmer (created / stored with SQL Management
I'm trying to create some unit tests for an application I've recently inherited. Currently
I just recently inherited a Rails application and am debating an architectural decision moving
I have recently inherited a large Java Application that has almost no Thread safety

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.