こんにちは、この github ページに従って MFSideMenu を追加し、次のエラーを表示しました。
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MFSideMenuContainerViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
これは私のAppDelegateです
- (ViewController *)demoController {
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
ViewController *main = (ViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@"home"];
return main;
}
- (UINavigationController *)navigationController {
return [[UINavigationController alloc]
initWithRootViewController:[self demoController]];
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
leftMenuController *leftMenuViewController = [[leftMenuController alloc] init];
MFSideMenuContainerViewController *container = [MFSideMenuContainerViewController
containerWithCenterViewController:[self navigationController]
leftMenuViewController:leftMenuViewController
rightMenuViewController:nil];
self.window.rootViewController = container;
[self.window makeKeyAndVisible];
return YES;
}