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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:48:39+00:00 2026-05-14T04:48:39+00:00

My app works fine in the simulator but when I run it on my

  • 0

My app works fine in the simulator but when I run it on my phone I get this error:

2010-04-05 21:32:45.119 Top
Banana[119:207] * Terminating app
due to uncaught exception
‘NSInvalidArgumentException’, reason:
‘*
-[MethodViewController
setReferringObject:]: unrecognized
selector sent to instance 0x16e930′

It happens here:

-(void)method {

 [UIView beginAnimations:@"View Flip" context:nil];
 [UIView setAnimationDuration:0.50];
 [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

 [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
 MethodViewController *methodViewController = [[MethodViewController alloc] initWithNibName:@"MethodViewController" bundle:0];   

 NSManagedObject *selectedObject = self.referringObject;
 methodViewController.referringObject = selectedObject;

 [self.navigationController pushViewController:methodViewController animated:NO];

 methodViewController.title = @"Method";

 [UIView commitAnimations];

 [MethodViewController release]; 
}

It crashes on this line:

methodViewController.referringObject = selectedObject;

Not sure how to resolve this as it works in the simulator, I’m sure it is fairly basic to fix, any help will be 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-14T04:48:40+00:00Added an answer on May 14, 2026 at 4:48 am

    Not sure why it’s happening, but this test could yield some helpful diagnostic information: Set a breakpoint on the line that’s crashing, and Build and Debug on your phone. Then type “po methodViewController” at your gdb prompt to find out what kind of object that variable actually points to at runtime. Then try the same thing in the simulator and compare. You’re probably getting an object of the wrong class on the phone for some reason. Knowing its actual class will probably help.

    Grasping at straws, but here are some other things to check:

    1. Make sure MethodViewController.xib is in your project and included in your target’s “Copy Bundle Resources” phase. Sometimes the simulator manages to magically find resources on your filesystem that haven’t been properly included in your project.

    2. Make sure you don’t have an old copy of MethodViewController.xib sitting around in some other directory under your project.

    3. Make sure your File’s Owner in MethodViewController.xib is set to MethodViewController.

    4. Try Build -> Clean All Targets.

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

Sidebar

Related Questions

My sounds works fine in the simulator, but when I run the app on
My app works perfectly fine in the simulator but crashes on the Device. How
I am getting this error in console while i m run app in simulator
I have developed my app using core data. It works fine in the simulator.
can someone tell me why my app works fine on samsumg galaxy nexus but
Have an ASP.net web app which works fine for a few days, but then
The app works perfectly fine on the simulator and on the device. After adding
I am trying to run a new Iphone app, and altough it works fine
The app works just fine when I run it in debug mode on my
I have an MVC3 C# .Net web app. The app works fine when launching

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.