C++ 新手错误苹果Mach-O连接器错误

C++ 新手错误苹果Mach-O连接器错误,c++,iphone,ios,objective-c,xcode,C++,Iphone,Ios,Objective C,Xcode,我是新来的,但我有一个苹果Mach-O链接器错误: 这是我的应用程序代理! // //AppDelegate.m //vcContainentTut // //由汗于2013年5月1日创建。 //版权所有(c)2013 AK。版权所有。 // 您的错误是由于您试图使用尚未告知项目(因此链接器)存在的代码造成的。您需要将依赖项添加到项目中。在本例中,框架定义了您试图使用的功能。您是否将Framework MediaPlayer.Framework添加到项目中?啊,添加之后,删除了3个错误。然而,还

我是新来的,但我有一个苹果Mach-O链接器错误:

这是我的应用程序代理! // //AppDelegate.m //vcContainentTut // //由汗于2013年5月1日创建。 //版权所有(c)2013 AK。版权所有。 //


您的错误是由于您试图使用尚未告知项目(因此链接器)存在的代码造成的。您需要将依赖项添加到项目中。在本例中,框架定义了您试图使用的功能。

您是否将Framework MediaPlayer.Framework添加到项目中?啊,添加之后,删除了3个错误。然而,还有一些其他问题。例如:“_SecCertificateCopyData”,引用自:-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:],在AFURLConnectionOperation.oah中,我需要添加security.framework!
#import "AppDelegate.h"
#import "RootController.h"
#import "ViewController.h"
#import "VidViewController.h"
#import "SelectVideo1.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    VidViewController *vidViewController = [[VidViewController alloc] init];
    UINavigationController *navController1 = [[UINavigationController alloc] initWithRootViewController:vidViewController];
[self.window setRootViewController:navController1];

    SelectVideo1 *selectVideo1 = [[SelectVideo1 alloc] initWith:@"Movie Trailers"];
    //[self.navController pushViewController:selectVideo1 animated:YES];


    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    UIStoryboard *tabStoryBoard = [UIStoryboard storyboardWithName:@"TabStoryboard" bundle:nil];
    UIStoryboard *navStoryBoard = [UIStoryboard storyboardWithName:@"NavStoryboard" bundle:nil];
    UINavigationController *navController = [navStoryBoard instantiateViewControllerWithIdentifier:@"Nav Controller"];
    UITabBarController *tabController = [tabStoryBoard instantiateViewControllerWithIdentifier:@"Tab Controller"];
    ViewController *redVC, *greenVC;
    redVC = [[ViewController alloc] init];
    greenVC = [[ViewController alloc] init];

    redVC.view.backgroundColor = [UIColor redColor];
    greenVC.view.backgroundColor = [UIColor greenColor];

    RootController *menuController = [[RootController alloc]
                                      initWithViewControllers:@[tabController, redVC, greenVC, navController, selectVideo1]
                                      andMenuTitles:@[@"Cheats", @"Videos", @"WalkThroughs", @"Nav"]];
    self.window.rootViewController = menuController;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}



@end