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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:39:41+00:00 2026-06-11T14:39:41+00:00

I’m developing my first application and it has come to a time to test

  • 0

I’m developing my first application and it has come to a time to test it on a real device. I had an old iPhone 3GS in the office that I updated to the latest version of IOS.

When I try to launch the application on the iPhone simulator, everything works well. But then, I try to launch it on my device, and the application crashes with the error below :

2012-09-13 14:16:01.556 MyFirstApp[1702:707] *** Terminating app due to uncaught
exception 'NSUnknownKeyException', reason: '[<__NSCFString 0x15e2e0> valueForUndefinedKey:]: 
this class is not key value coding-compliant for the key testKey.'

I checked my build settings, which are as below :

enter image description here

I’ve also heard that it can come from some variables that are not properly set or deleted in IB, but I don’t have any warnings about that…

Here’s some code I’m using on the view concerned by the error :

@implementation HomeViewController {
    @private
    NSArray *_orders;
    __strong UIActivityIndicatorView *_activityIndicatorView;
}

@synthesize orderList = _orderList;

- (void)reload:(id)sender {
    [_activityIndicatorView startAnimating];

    [Order orderListWithBlock:^(NSArray *orders) {
        if (orders) {
            _orders = orders;
            [self.orderList reloadData];
        }
        [_activityIndicatorView stopAnimating];
    }];
}

- (void)viewDidLoad
{
    [self reload:nil];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Custom Cell Segment";
    static NSString *OtherCellIdentifier = @"Other Cell Segment";
    Order *o = [_orders objectAtIndex:indexPath.row];

    if ([o.testKey isEqualToString:@""]) {
        [SOME STUFF]
    }
    else {
        [SOME OTHER STUFF]
    }
}

Does anyone knows where does the error can come from ?

Thanks for your help !

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

    That may not be because of the simulator vs. device, but because you had an old IBOutlet in Interface Builder that you deleted since, but the connection is still present in the XIB. Just open the XIB where you have that old IBOutlet “testKey” connection and remove the connection.

    Now for why your app worked on your simulator so far, this is because the XIB hasn’t been recompiled, or some old XIB that you deleted from the sources are still in the build product from a previous build.

    So I bet that if you completely clean your project, removing the Build Directory and rebuilding from the beginning, you will have the same problem in the Simulator and can thus reproduce it and debug it.

    To do that, you may perform a “Clean” from the “Product” menu, or even better old the option key while opening this menu to select “Clean Build Folder…”.
    Sometimes it is not sufficient anyway, so you may instead delete the whole build folder from the Finder:

    • Open the Organizer (menu “Window” -> “Organizer”)
    • Select the “Projects” tab at the top, then select your project on the left
    • Click the “Delete” button next to the “Derived Data” zone.

    This will delete your Build Output directory so that the next time you build your project it will recompile everything from scratch.

    From there you may see your warning on the XIB file and you will observe that your application will also crash in the Simulator, meaning that is not a crash that is due to the device, but due to the fact that previous builds messed up your built application.
    And you can fix this crash (by removing the old “testKey” outlet connection in the XIB) for both device and simulator.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker

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.