title: Errors: "Expected selector for Objective-C method" and "Expected method body" on #import <Foundation/Foundation.h>
body: <p>I get the next two errors while trying to run the project on simulator:</p>
  
  <ol>
  <li>Expected selector for Objective-C method</li>
  <li>Expected method body</li>
  </ol>
  
  <p>on <code>#import &lt;Foundation/Foundation.h&gt;</code> in the AppDelegate.h file</p>
  
  <p>I tried cleaning the project, closed and open Xcode,restarted the PC, tried to find a type-o, but I couldn't find any, I must add that I didn't made any changes to the app delegate file, everything happened when I changed from testing on my device to testing on the simulator.</p>
  
  <p>Here is my exact code with no modifies:</p>
  
  <pre><code>//
  //  AppDelegate.h
  //  ChannerApp
  //
  //  Created by Laurentiu on 20/02/15.
  //  Copyright (c) 2015 Laurentiu. All rights reserved.
  //
  
  #import &lt;Foundation/Foundation.h&gt;
  #import "GroupsViewController.h"
  #import &lt;FacebookSDK/FacebookSDK.h&gt;
  #import &lt;UIKit/UIKit.h&gt;
  #import "XMPP.h"
  #import &lt;CoreData/CoreData.h&gt;
  #import "XMPPStream.h"
  #import "XMPPReconnect.h"
  #import "XMPPRoster.h"
  #import "XMPPRosterCoreDataStorage.h"
  #import "XMPPvCardCoreDataStorage.h"
  #import "XMPPvCardAvatarModule.h"
  #import "XMPPCapabilities.h"
  #import "XMPPCapabilitiesCoreDataStorage.h"
  #import "ConractsViewController.h"
  #import "StartViewController.h"
  #import "DDLog.h"
  #import "Reachability.h"
  #import "XMPPvCardTemp.h"
  
  
  @class StartViewController, GroupsViewController;
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate, XMPPStreamDelegate, XMPPRosterDelegate, XMPPvCardTempModuleDelegate&gt;
  
  @property (strong, nonatomic) UIWindow *window;
  
  @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
  @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
  @property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
  @property (nonatomic, strong) StartViewController *notSignedInView;
  @property (nonatomic, strong) GroupsViewController *signedInView;
  ///////////////////////////////////////////////
  @property (nonatomic, strong, readonly) XMPPStream *xmppStream;
  @property (nonatomic, strong, readonly) XMPPReconnect *xmppReconnect;
  @property (nonatomic, strong, readonly) XMPPRoster *xmppRoster;
  @property (nonatomic, strong, readonly) XMPPRosterCoreDataStorage *xmppRosterStorage;
  @property (nonatomic, strong, readonly) XMPPvCardTempModule *xmppvCardTempModule;
  @property (nonatomic, strong, readonly) XMPPvCardAvatarModule *xmppvCardAvatarModule;
  @property (nonatomic, strong, readonly) XMPPCapabilities *xmppCapabilities;
  @property (nonatomic, strong, readonly) XMPPvCardCoreDataStorage *xmppvCardStorage;
  @property (nonatomic, strong, readonly) XMPPvCardTemp *storedvCard;
  ///////////////////////////////////////////////
  //all user values that should be saved
  @property (nonatomic, strong) NSString *userName;
  @property (nonatomic, strong) NSString *nickName;
  @property (strong, nonatomic) NSString *passwordText;
  @property (nonatomic, strong) NSString *firstName;
  @property (strong, nonatomic) NSString *lastName;
  @property (nonatomic, strong) NSString *emailAddress;
  @property (strong, nonatomic) NSString *avatarImage;
  @property (strong, nonatomic) NSString *gender;
  @property (nonatomic, strong) NSString *facebookInfo;
  @property (strong, nonatomic) NSString *linkedInInfo;
  @property (strong, nonatomic) NSString *birthdate;
  
  - (void)saveContext;
  - (NSURL *)applicationDocumentsDirectory;
  - (void)signInWith: (NSString *)username andPassword: (NSString *) password;
  - (void)teardownStream;
  - (BOOL)checkForNetwork;
  - (void)savevCardWithUsername:(NSString *)username andNickname:(NSString *)andNickname andPassword:(NSString *)andPassword andLastName:(NSString *)andLastName andBirthdate:(NSString *)andBirthdate andFirstName:(NSString *)andFirstName andEmailAddress:(NSString *)andEmailAddress andAvatarImage:(NSString *)andAvatarImage andGender:(NSString *)andGender andFBInfo:(NSString *)FBInfo andLinkedInInfo:(NSString *)LinkedInInfo;
  
  - (void)uploadvCard;
  
  @end
  </code></pre>