Xcode SIGABRT error??

Hello,
I was in the storyboard backing buttons that connect to different view controllers, and when I ran it in the simulator and pressed on the button, It gave me an error with SIGABRT. How do I fix this?

Your app is using auto layout, which was introduced in iOS 6. Your iPhone is running iOS 5, which doesn't support auto layout. That's why the code works on your iPad, but not your iPhone.
If you want your app to work on both devices you have to turn off layout and set your app's deployment target to iOS 5. To turn off auto layout, select your xib file from the project navigator. Open the file inspector by choosing View > Utilities > Show File Inspector. Deselect the Use Auto Layout checkbox.
To change the deployment target, select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Click the Info button at the top of the editor. Choose iOS 5.0 from the iOS Deployment Target combo box.

Similar Messages

  • SIGABRT error when choosing a row of a tableview

    Hello, I am creating an iPhone app and I keep getting a "SIGABRT" error. I have a tableview where I want a separate webpage pushed for each rows.
    Currently, what happens is that the table displays; however, when I pick a row it gives me a SIGABRT error. Please help.
    Here is my first view (table view) .h file:
    #import <UIKit/UIKit.h>
    @interface videoTableViewController : UITableViewController
        NSArray *videos;
    @property (strong, nonatomic) NSArray *videos;
    @end
    Here is my first view (table view) .m file:
    #import "videoTableViewController.h"
    #import "videoURLController.h"
    @interface videoTableViewController ()
    @end
    @implementation videoTableViewController
    @synthesize videos;
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        videos = [NSArray arrayWithObjects:@"Welcome", @"Hello", @"Goodbye", nil];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [self.videos count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"videoCell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        // Configure the cell...
        NSUInteger row = [indexPath row];
        cell.textLabel.text = [videos objectAtIndex:row];
        if (row == 0)
            cell.detailTextLabel.text = @"Welcome";
        if (row == 1)
            cell.detailTextLabel.text = @"What we value";
        if (row == 2)
            cell.detailTextLabel.text = @"What does Honor mean?";
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
         videoURLController *detailViewController = [[videoURLController alloc] initWithNibName:@"videoTableViewController" bundle:nil];
        UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
        if (indexPath.row == 0){
            [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end
    Here is my videoURLController (second view/web view) .h file?
    #import <UIKit/UIKit.h>
    @interface videoURLController : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webView;
    @end
    Here is my videoURLController (second view/web view) .m file?
    #import "videoURLController.h"
    @interface videoURLController ()
    @end
    @implementation videoURLController
    @synthesize webView;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
      // Do any additional setup after loading the view.
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    @end

    Hello, I am creating an iPhone app and I keep getting a "SIGABRT" error. I have a tableview where I want a separate webpage pushed for each rows.
    Currently, what happens is that the table displays; however, when I pick a row it gives me a SIGABRT error. Please help.
    Here is my first view (table view) .h file:
    #import <UIKit/UIKit.h>
    @interface videoTableViewController : UITableViewController
        NSArray *videos;
    @property (strong, nonatomic) NSArray *videos;
    @end
    Here is my first view (table view) .m file:
    #import "videoTableViewController.h"
    #import "videoURLController.h"
    @interface videoTableViewController ()
    @end
    @implementation videoTableViewController
    @synthesize videos;
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        videos = [NSArray arrayWithObjects:@"Welcome", @"Hello", @"Goodbye", nil];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [self.videos count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"videoCell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        // Configure the cell...
        NSUInteger row = [indexPath row];
        cell.textLabel.text = [videos objectAtIndex:row];
        if (row == 0)
            cell.detailTextLabel.text = @"Welcome";
        if (row == 1)
            cell.detailTextLabel.text = @"What we value";
        if (row == 2)
            cell.detailTextLabel.text = @"What does Honor mean?";
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
         videoURLController *detailViewController = [[videoURLController alloc] initWithNibName:@"videoTableViewController" bundle:nil];
        UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
        if (indexPath.row == 0){
            [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end
    Here is my videoURLController (second view/web view) .h file?
    #import <UIKit/UIKit.h>
    @interface videoURLController : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webView;
    @end
    Here is my videoURLController (second view/web view) .m file?
    #import "videoURLController.h"
    @interface videoURLController ()
    @end
    @implementation videoURLController
    @synthesize webView;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
      // Do any additional setup after loading the view.
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    @end

  • SIGABRT error - PLEASE HELP - NEEDED URGENTLY

    Hello guys pls hep me out, i am new to ios sdk
    i am getting a sigabrt error
    This is how my app goes:
    $ A story board app
    $ 1 view controller embedded in a navigation controller
    $ 1 TableViewController And 1 more UIViewController
    $ When a user clicks button in the first viewcontroller he is pushed to the table view controller
    $ 3 Class files (h and m)
    $ 1 class file is an object
    $2nd class file is table view controller
    $ 3rd is UIVIewController
    now the problem is that when i click the button in the first viewcontoller i get a sigbrt error telling me that the cell text labeling is wrong and that sigabrt error with a green highlight stays on the code..
    I HAVE HIGHLIGHTED THE CODES THAT SHOWS SIGABRT ERROR
    My codes:
    URL.h
    #import <Foundation/Foundation.h>
    @interface url : NSObject
    @property (nonatomic, strong) NSString *urlstring;
    @property (nonatomic, strong) NSString *ns;
    @end
    url.m:
    #import "url.h"
    @implementation url
    @synthesize urlstring, ns;
    @end
    load.h;
    #import <UIKit/UIKit.h>
    #import "url.h"
    @interface load : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webview;
    @property (strong, nonatomic) url *currenturl;
    @property (strong, nonatomic) NSString *path;
    @property (strong, nonatomic) NSString *finalpath;
    @property (strong, nonatomic) NSString *value;
    @end
    load.m:
    #import "load.h"
    @interface load ()
    @end
    @implementation load
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        NSURL *ul = [NSURL URLWithString:[_currenturl urlstring]];
        [self.webview loadRequest:[NSURLRequest requestWithURL:ul]];
        [super viewDidLoad];
        // Do any additional setup after loading the view.
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    @end
    wwp.h ( wizards of waverly place i am trying to create an app that shows all the episodes)
    #import <UIKit/UIKit.h>
    #import "url.h"
    #import "load.h"
    @interface wwp : UITableViewController <UITableViewDelegate, UITableViewDataSource>
    @property (nonatomic, strong) NSDictionary *seasons;
    @property (nonatomic, strong) NSArray *keyseasons;
    @property (strong, nonatomic) NSString *path;
    @property (strong, nonatomic) NSString *finalpath;
    @property (strong, nonatomic) NSString *value;
    @end
    wwp.m
    #import "wwp.h"
    #import "url.h"
    @interface wwp ()
    @end
    @implementation wwp
    @synthesize seasons, keyseasons;
    NSMutableArray *urls;
    -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        if ([segue.identifier isEqualToString:@"showurl"]) {
            load *dvc = [segue destinationViewController];
            NSIndexPath *path = [self.tableView indexPathForSelectedRow];
            url * c = [urls objectAtIndex:path.row];
            [dvc setCurrenturl:c];
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        urls = [[NSMutableArray alloc] init];
        url *link = [[url alloc] init];
        [link setUrlstring:@"E1 Crazy Ten Minute Sale"];
        [link setNs:@"E1 Crazy Ten Minute Sale"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E2 First Kiss"];
        [link setNs:@"E2 First Kiss"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [link setNs:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E4 New Employee"];
        [link setNs:@"E4 New Employee"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E5 Disenchanted Evening"];
        [link setNs:@"E5 Disenchanted Evening"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E6 You Can't Always Get What You Carpet"];
        [link setNs:@"E6 You Can't Always Get What You Carpet"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E7 Alex's Choice"];
        [link setNs:@"E7 Alex's Choice"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E8 Curb Your Dragon"];
        [link setNs:@"E8 Curb Your Dragon"];
        [urls addObject:link];
        NSString *myfile = [[NSBundle mainBundle] pathForResource:@"SeasonWowp" ofType:@"plist"];
        seasons = [[NSDictionary alloc] initWithContentsOfFile:myfile];
        keyseasons = [seasons allKeys];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [seasons count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (nil == cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        url *current = [urls objectAtIndex:indexPath.row];
        [cell.textLabel setText:[current ns]];
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Navigation logic may go here. Create and push another view controller.
         <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end

    Sorry my mistake,
    i didnt intend to highlight it all... happened by mistake... before publishing the post i had the actuall thing highlighted and now its not any ways this the code that shows the error: ( the one which is Bolded,Italiced ,Underlined)
    wwp:
    #import "wwp.h"
    #import "url.h"
    @interface wwp ()
    @end
    @implementation wwp
    @synthesize seasons, keyseasons;
    NSMutableArray *urls;
    -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
        if ([segue.identifier isEqualToString:@"showurl"]) {
            load *dvc = [segue destinationViewController];
            NSIndexPath *path = [self.tableView indexPathForSelectedRow];
            url * c = [urls objectAtIndex:path.row];
            [dvc setCurrenturl:c];
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        urls = [[NSMutableArray alloc] init];
        url *link = [[url alloc] init];
        [link setUrlstring:@"E1 Crazy Ten Minute Sale"];
        [link setNs:@"E1 Crazy Ten Minute Sale"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E2 First Kiss"];
        [link setNs:@"E2 First Kiss"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [link setNs:@"E3 I Almost Drowned in a Chocolate Fountain"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E4 New Employee"];
        [link setNs:@"E4 New Employee"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E5 Disenchanted Evening"];
        [link setNs:@"E5 Disenchanted Evening"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E6 You Can't Always Get What You Carpet"];
        [link setNs:@"E6 You Can't Always Get What You Carpet"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E7 Alex's Choice"];
        [link setNs:@"E7 Alex's Choice"];
        [urls addObject:link];
        link = [[url alloc] init];
        [link setUrlstring:@"E8 Curb Your Dragon"];
        [link setNs:@"E8 Curb Your Dragon"];
        [urls addObject:link];
        NSString *myfile = [[NSBundle mainBundle] pathForResource:@"SeasonWowp" ofType:@"plist"];
        seasons = [[NSDictionary alloc] initWithContentsOfFile:myfile];
        keyseasons = [seasons allKeys];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)didReceiveMemoryWarning
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [seasons count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (nil == cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        url *current = [urls objectAtIndex:indexPath.row];
        [cell.textLabel setText:[current ns]];
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Navigation logic may go here. Create and push another view controller.
         <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end

  • Xcode terminal error !

    Hii...Im trying to install "Phonegap" in xcode 4.6,but im not able to get the xcode directory inorder to install it !!I have beeb fallowing the documentation provided here :http://docs.phonegap.com/en/2.5.0/guide_getting-started_ios_index.md.html#Gettin g%20Started%20with%20iOS
    In TERMINAL :
    Once i type the cmd to print the location it says ;
    Rathishs-MacBook-Pro:~ Rathish$ xcode-select --print-path
    /Volumes/Xcode/Xcode.app/Contents/Developer
    But when i try to switch the location of xcode :
    Rathishs-MacBook-Pro:~ Rathish$  xcode-select --switch /Volumes/Xcode/Xcode.app/Contents/Developer
    xcode-select: Error: An error occurred while trying to -switch to '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory).
    What is it im doing wrong here ?
    Thank you !

    Here you go:
              https://discussions.apple.com/community/developer_forums

  • How do I fix a SIGABRT error in Xcode 4 ?

    I keep getting this error in Xcode 4 when I run the app:

    You stop the error from happening by fixing the error in your code that is causing the sigabrt.
    Without a lot more information there is no other way to answer your question.

  • How to solve the SIGABRT error in Xcode 3 ?

    I've built an iOS app and SIGABRT makes it crash . The app uses accelerator . I use the latest version of Xcode 3 (3.2.6) . How to sovle the problem ?

    How to solve this ?
    #import <UIKit/UIKit.h>
    int main(int argc, char *argv[]) {
        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
       -> int retVal = UIApplicationMain(argc, argv, nil, nil);
        [pool release];
        return retVal;

  • SIGABRT error in xCode 4.5.2

    Hello everybody, I´m just learning IOS Programming and I´ve had a problem when i Run the apps on my iPad (6.0) and mi iPhone (5.0.1) and also in the Simulator, when I run some apps in certain devices the screen is block in the Default image and i get this line in green:
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); Thread 1:signal SIGABRT
    I´m getting mad trying to solve this, help would be appreciated. In the debugger this time i have this:
    2012-11-18 13:59:50.430 Quiz[82846:707] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
    *** First throw call stack:
    (0x33efa8bf 0x3414a1e5 0x33efa7b9 0x33efa7db 0x375863a1 0x3758650f 0x37586277 0x375173fd 0x374879cb 0x37366ea1 0x372dc78b 0x372daf9d 0x372cd941 0x3733f541 0x23b1 0x372db7eb 0x372d53bd 0x372a3921 0x372a33bf 0x372a2d2d 0x306d5df3 0x33ece553 0x33ece4f5 0x33ecd343 0x33e504dd 0x33e503a5 0x372d4457 0x372d1743 0x210f 0x20b0)
    terminate called throwing an exception(lldb)
    Thanks for your help.

    Your app is using auto layout, which was introduced in iOS 6. Your iPhone is running iOS 5, which doesn't support auto layout. That's why the code works on your iPad, but not your iPhone.
    If you want your app to work on both devices you have to turn off layout and set your app's deployment target to iOS 5. To turn off auto layout, select your xib file from the project navigator. Open the file inspector by choosing View > Utilities > Show File Inspector. Deselect the Use Auto Layout checkbox.
    To change the deployment target, select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Click the Info button at the top of the editor. Choose iOS 5.0 from the iOS Deployment Target combo box.

  • SIGABRT Error Xcode 5

    Am making an iPhone app and I am new to Xcode and IOS programming - whenever I run the app in the simulator and tap on the button which sends me to the next view it crashes and gives me this message:
    In the debugger it gives me this:
    2014-02-26 19:42:25.396 ShoeForYouStoryboard[2452:70b] -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x8c79730
    2014-02-26 19:42:25.400 ShoeForYouStoryboard[2452:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x8c79730'
    *** First throw call stack:
    Thanks if you can help.

    Your app is using auto layout, which was introduced in iOS 6. Your iPhone is running iOS 5, which doesn't support auto layout. That's why the code works on your iPad, but not your iPhone.
    If you want your app to work on both devices you have to turn off layout and set your app's deployment target to iOS 5. To turn off auto layout, select your xib file from the project navigator. Open the file inspector by choosing View > Utilities > Show File Inspector. Deselect the Use Auto Layout checkbox.
    To change the deployment target, select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Click the Info button at the top of the editor. Choose iOS 5.0 from the iOS Deployment Target combo box.

  • XCode "Internal Error" on new/load project

    When I open or create a new project, I'm confronted with the following internal error:
    Internal Error
    File: /SourceCache/DevToolsBase/DevToolsBase-658/pbxcore/Target.subproj/PBXCompilerSp ecificationGcc.m
    Line: 375
    Object: <PBXCompilerSpecificationGcc:0x011a66c0>
    Method: compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:
    method -[PBXCompilerSpecificationGcc
    compileSourceCodeFileAtPath:ofType:toOutputDirectory:inTargetBuildContext:] is a responsibility of subclasses of PBXCompilerSpecificationGcc
    I'm running XCode 2.2 on OS X 10.4/PowerBook.
    I'm new to XCode and Mac, this is the first time I've tried using XCode. Any idea what's going wrong for me?
    Many thanks.

    Ah, thanks for the response! When I looked into the project folders, I discovered I was somehow missing several of the XCode packages. I 'upgraded' my installation and now everything seems to be in order with no 'internal error' messages. Thanks again!

  • Xcode internal error "couldn't create ~/.Xcode"

    hi all, I've got a fresh download of xcode 3.2.4 on snowleopard 10.6.5 and when starting a project on my usual User (which is a standard user) i get an "couldn't create ~/.Xcode" error.
    I've created a new standard user and xcode works fine with it
    id prefer to keep to my one usual user, any ideas?
    edit - should add that if i click 'continue' then xcode launches but i'm loathe to trust it
    Message was edited by: giantreign

    giantreign wrote:
    how do i add myself to my home folder with read & write permissions and get rid of _unknown?
    In the Finder, do Get Info on your home folder. At the bottom of the Get Info window, click the + button.
    The actual ownership may be incorrect so you might not be able to remove _unknown.
    Another alternative would be to use the Terminal:
    sudo chown $USER:staff ~

  • Xcode 3 Errors

    Hello,
    I have been working with GLUT in my graphics class all semester using 2.4, and it has been going great, most of the other students had to go get GLUT, and install it, Apple was kind enough to include it with the dev tools, and it works very well with Xcode. However, I upgraded to Leopard over the weekend, and all of the sudden I am getting errors for any call I make to the GLUT library saying that it was referenced from "test.o." Even from projects that worked perfectly before.
    I tried deleting and re-adding the framework to the project, but that didn't seem to solve the problem. They are using the same version of gcc correct? What else could be causing these errors?

    False alarm, I got it working.
    Message was edited by: c0ld_

  • An Xcode version error in MacPorts

    A have freshly checked-out from svn, built and installed MacPorts. I have installed Xcode4.3. I get the following error when trying to call "sudo port install X":
    Error: The installed version of Xcode (3.1.4) is too old to use on the installed OS version. Version 4.1 or later is recommended on Mac OS X 10.7.
    "xcodebuild -version" returns:
    XcodeComponent versions: DevToolsCore-1809.0; DevToolsSupport-1806.0 BuildVersion: 10M2518
    I have recently updated MacOS to Lion and I used to have an older version of xCode in SnowLeopard, which didn't work in the new system. I didn't uninstall it explicitly, but I also don't find any trace of the old Xcode on my system.
    Any ideas? Please, help!

    Xcode use to be installed in /Developer see if that folder is still there.
    Also Xcode now has changed, it is installed in /Applications and is no longer bundled with all the other developer bits. In your current xcode look in Preferences->Download  for inks to get some o the tools back. I would think that you specifically need the command line tools for hat you are trying to do.
    You'll get better response to questions like this one if you post to  the Developer Forums
    regards

  • Xcode distributing error messages

    hey @ all,
    we have just finished our iphone game and now we whant to distribute it in xcode, we set every thing like in the iphonedeveloper_program_user_guide_standard_programv2.pdf.
    we also watched the publishing on the app store.mov from the dev page und read the whole dev page discription, but we still get error messages while compiling.
    http://forum.unity3d.com/files/error_138.jpg
    http://forum.unity3d.com/files/error1_108.jpg
    please help.
    TIA

    Hello fordfor,
    Welcome to the Discussions Boards.
    This portion of the Discussions Boards is primarily an iPhone end-user forum.
    You may have better luck getting information regarding APP development/testing in the Developers resources:
    http://discussions.apple.com/category.jspa?categoryID=164
    http://developer.apple.com/iphone/
    Good luck with that APP,
    Charles H.

  • Xcode mount error...

    I just downloaded the newest version of xcode from the apple website, it downloaded as a .dmg file. When I try to open it, I get an error saying, "warning, The following disk images failed to mount." Can someone help me with this problem? thanks.

    Do other dmg files mount? If not, then move the com.apple.frameworks.diskimages.uiagent.plist file out of /Users/username/Library/Preferences/ on to the Desktop, log out and back in, and try mounting it again. If so, then I suspect a hosed download and you'll have to try it again (I know that it exceeds 1 GB, but that's the price one pays for updating the Xcode Tools. Alternatively, create a new admin user account, log into it, and try mounting it there.

  • Xcode compilation error

    Hi everybody,
    I have problems with Xcode, it won't compile any of my projects, it gives me the error :
    "error: Couldn't distribute compilation because the recruiter daemon isn't listening (No such file or directory)"
    I found a similar things in Apple Xcode 2.3 documentation in known problems, but the commands they give to repair that doesn't work for me.
    I'm on Xcode 2.4 with Tiger on a MacBook.
    PLease help me ! Thanks !

    That sounds like you have distributed builds turned on but not setup properly. Turn off that setting and see if that fixes it.

Maybe you are looking for