iPhone Problems, Causes and Solutions

Getting svn to ignore build directory, .mode1v3 and .pbxuser files

Problem

Cause

Solution

computer:MyApp juser$ svn status
 ?       build
 ?       MyApp.xcodeproj/juser.mode1v3
 ?       MyApp.xcodeproj/juser.pbxuser

computer:MyApp juser$ svn propset svn:ignore build .
property 'svn:ignore' set on '.'

computer:MyApp juser$ svn status
 M      .
 ?       MyApp.xcodeproj/juser.mode1v3
 ?       MyApp.xcodeproj/juser.pbxuser

computer:MyApp juser$ svn propset svn:ignore juser.* ./MyApp.xcodeproj/
property 'svn:ignore' set on 'MyApp.xcodeproj'

computer:MyApp juser$ svn status
 M      .
 M      MyApp.xcodeproj
computer:MyApp juser$ 

'Expected specifier-qualifier-list before 'NSManagedObjectModel''

Problem

Cause

Solution

...
#ifdef __OBJC__
    #import <Foundation/Foundation.h>
    #import <UIKit/UIKit.h>
    #import <CoreData/CoreData.h> // Added to fix 'Expected specifier-qualifier-list' error
#endif
...



'+entityForName: could not locate an NSManagedObjectModel for entity name

Problem

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Message''

Cause

Solution

...
- (void)applicationDidFinishLaunching:(UIApplication *)application 
{    
    
  // Override point for customization after app launch
  if(self.rootViewController == nil)
  {
    RootViewController *rootViewControllerLocal = [[RootViewController alloc] init];
    self.rootViewController = rootViewControllerLocal;
    self.rootViewController.managedObjectContext = self.managedObjectContext; // Solution, must be set
    [rootViewControllerLocal release];    
  }
...
}



"_CGRectZero"

Problem

  "_CGRectZero", referenced from:
      _CGRectZero$non_lazy_ptr in MyTableViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Cause

Solution



Code Sign error: a valid provisioning profile matching the application's Identifier

Problem

Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.ProjectName' could not be found

Cause

Solution



Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

Problem

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

Cause

Solution


Browse Space

- Pages
- Blog
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

 

Other Features

Add Content