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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:28:51+00:00 2026-05-24T07:28:51+00:00

I know this question has been asked before and I spent a lot of

  • 0

I know this question has been asked before and I spent a lot of time following the suggestions in various threads, not just on this site, but to no avail.

I’m developing an app for the iPad which consists of multiple views. Each one of these views contains a UITableView. Some of the TableView cells contain custom cells implemented with a UITableViewCell. The problem now is that I can run my app without problems on the iPad Simulator but not on the actual device. On the device – as soon as I try to access the view that contains that custom made UITableViewCell in question, it crashes with the following message:

2011-08-03 20:37:13.849 myApp[658:707] Creating cell: LabledTextFieldCell.xib
2011-08-03 20:37:13.866 myApp[658:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/B9A24738-FA19-4A54-8CE5-813B48E6871E/iCockpit-Client.app> (loaded)' with name 'LabledTextFieldCell.xib''

I’ve checked and rechecked and everything seems to be in perfect order. The file exists – in Xcode as well as physically in the file system, and it’s referenced in the code with its correct name.

Here’s the line of code on which the crash occurs:

[[NSBundle mainBundle] loadNibNamed:MyIdentifier owner:self options:nil];

In a larger context:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

int curRow = indexPath.row;
int i = 0;

if (indexPath.section > 0) {

    while (i < indexPath.section) {

        curRow = curRow + [self sectionSize:i];
        i++;
    }

}   

UITableViewCell *cellRet;

if (indexPath.section == 1) {
     // code
} else if (indexPath.section == 2) {
    // ...
} else if (indexPath.section == 3) {
    static NSString *MyIdentifier = @"LabledSwitchCell";

    NSLog(@"Creating cell: %@", MyIdentifier);

    cellRet = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
    if (cellRet == nil) {

        // CRASHES
        // -------
        [[NSBundle mainBundle] loadNibNamed:MyIdentifier owner:self options:nil];
        // -------

        cellRet = self.cell;
        self.cell = nil;
    }

    // more code...
}

What might be worth noting: The nib has initially been added via File -> New -> New File…, Cocoa Touch -> UIViewController subclass which provides three files – MyClassViewController.m, MyClassViewController.h and MyClassViewController.xib. I have renamed the MyClassViewController.xib (in my actual case LabledTextfieldViewController.xib) to MyClassView.xib (LabledTextfieldView.xib) which appeared more logical to me.

As stated above, the app works fine in the simulator, the problem only occurs on the actual device.

My Xcode version is the latest Xcode 4.1 (Build 4B110).

Thanks in advance. Any help is greatly appreciated!

  • 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-24T07:28:51+00:00Added an answer on May 24, 2026 at 7:28 am

    Check the spelling of your NIB file name, particularly upper vs. lower case.

    I believe the simulator file system isn’t case sensitive, but the actual device is.

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

Sidebar

Related Questions

I know this question has been asked before but the solutions did not work
I know this specific question has been asked before , but I am not
I know this type of question has been asked before, but I could not
I know this question has been asked countless times before, but the other threads
I know this question has been asked before, and I took a look at
I know this question has been asked before, but I haven't been able to
I know this question has been asked before numorous times but they seem to
Alright, I know this question has been asked before, but mine has a different
I know this question has been asked before, but none of the previous answers
I know this question has been asked before and I read all the answers

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.