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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:42:12+00:00 2026-06-11T23:42:12+00:00

Whenever I run my app into a ‘iPhone 6.0 Simulator’, I get this weird

  • 0

Whenever I run my app into a ‘iPhone 6.0 Simulator’, I get this weird behavior. The first time, it will successfully run but the 2nd time, it will crash with the error:

loaded the "IouView" nib but the view outlet was not set.'

This is reproducible and every other time, it would work and vice versa, it would crash. Here is my app structure:

In AppDelegate:

self.iouViewController = [[IouViewController alloc] initWithNibName:@"IouView" bundle:nil];
    [iouViewController setIouTableArray:iouTableArray];
    navController = [[UINavigationController alloc] initWithRootViewController:self.iouViewController];
    [window setRootViewController:navController];

Then, in IouViewController.h:

@property (strong, nonatomic) IBOutlet UITableView *iouTableView;

Up until today, I have always coded my views (tableView, etc..) programmatically. With iPhone 5 having 4″ screen, I decided to stop fighting Apple and use IB along with ‘Auto Layout’ feature.

In my IouView.xib, this is the structure:

Objects: 'View', 
  Referencing Outlets: view - File's Owner

Objects: 'View'->'Table View'
  Outlets: dataSource - File's Owner
  Outlets: delegate - File's Owner
  Referencing Outlets: iouTableView - File's Owner

There is actually another Table View within the View but I did not include it here. Please help as I am at a lost on how to proceed! Thank you so much.

Just throwing it out there since I may not be initialize my view controllers correctly, I commented out ‘loadView’ and use this as init:

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {

    }

    return self;
}

PS: I am building on iOS 6 SDK with Apple LLVM 4.1 and ARC enabled.

Update: Image from IB added:
image1
image2
image3
image4

Still at a lost, if you need any more code, please let me know. I created a new project with a simple navigation controller and it works for that new project but not mine. The crash is with the simulator.

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

    I found a solution that does not crash the simulator anymore I think. I only got through the first view. This is the ‘thing’ I did. If someone have insights, let them share and hopefully will help others out as well. Special thanks to Carl Veazey for helping.

    What I forgot to mention was that this code was done back in the days of iOS4 without ARC. When I switch, there were a lot of changes.

    Following Carl’s suggestions, I took a look at ‘Build Phases’ -> ‘Compile Sources’ and saw to IouView.xib. So, I delete one. I ran the program and it shows a black screen. Finally, I looked at main.m

    Original:

    @autoreleasepool {
        int retVal = UIApplicationMain(argc, argv, nil, nil);
        return retVal;
    }
    

    and change it to:

    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([IouApp2AppDelegate class]));
    }
    

    and i have to #import my AppDelegate. After making that change, I can run the program multiple times and it did not crash.

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

Sidebar

Related Questions

Whenever i try to run sqlmetal, i get this: 'sqlmetal' is not recognized as
I have Xcode 4.2 and whenever I run my app in the simulator and
I routinely run into this problem, and I'm not sure how to get past
Whenever I run an app on my iPhone, the app is keep overlapping. I
I am facing this issue whenever I am trying to run Play 1.2.1 in
I am plannning to use whenever gem which among other things will also run
I am trying to get my Chrome Extension to run the function init() whenever
I'm not sure why, but whenever I run rake assets:precompile , application.js doesn't get
I'm sure others have run into this problem too... I often watch videos in
I'm currently developing an app, and have run into an issue causing it 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.