Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild Error - Receiver type "ViewController" for instance messages is a forward declaration
    text
    copied!<p>I am getting 2 errors when building, they are located in the AppDelegatem file</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; } </code></pre> <p><strong>line with two errors:</strong></p> <pre><code>self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; </code></pre> <p><strong>Error1:</strong> </p> <pre><code>Receiver type "ViewController" for instance messages is a forward declaration </code></pre> <p><strong>Error2:</strong> </p> <pre><code>Receiver "ViewController" for class messages is a forward declaration </code></pre> <p><strong>line with Alert:</strong></p> <pre><code>self.window.rootViewController = self.viewController; </code></pre> <p><strong>Alert:</strong> </p> <pre><code>Incompatible pointer types assigning to 'UIViewController *' from 'ViewController*' </code></pre> <p>If needed you can find text files of ViewControllerm ViewControllerh AppDelegatem Here <a href="http://ninjabreakbot.com/stack/" rel="nofollow">http://ninjabreakbot.com/stack/</a></p> <p>Project is for iOS5, I am very new to this. Please let me know what is useful with questions such as this. Or if enough has been provided, your solutions!</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload