"Apple Mach-O linker command failed with exit code 1"

Ich versuche zu implementieren, die SVProgressHUD Aktivitätsanzeige. Kopiert habe ich die Klassen für mein Projekt und Hinzugefügt, den folgenden code zu meiner appDelegate aber kann nicht herausfinden, warum es abstürzt.

Bekomme ich Sie folgenden Fehler und bin mir nicht sicher, wo Sie zu suchen um es zu beheben:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SVProgressHUD", referenced from:
objc-class-ref in QuotesAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Hier ist der code:

#import "SVProgressHUD.h"

@implementation QuotesAppDelegate


- (void)startLoading
{
    //call this in your app delegate instead of setting window.rootViewController to your main view controller
    //you can show a UIActivityIndiocatorView here or something if you like
    [SVProgressHUD show];
    [self performSelectorInBackground:@selector(loadInBackground) withObject:nil];
}

- (void)loadInBackground
{
    //do your loading here
    //this is in the background, so don't try to access any UI elements
    [self populateFromDatabase];

    [SVProgressHUD dismiss];

    [self performSelectorOnMainThread:@selector(finishedLoading) withObject:nil waitUntilDone:NO];
}

- (void)finishedLoading
{
    //back on the main thread now, it's safe to show your view controller
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
}


- (void)applicationDidFinishLaunching:(UIApplication *)application {

[self copyDatabaseIfNeeded];

    [self startLoading];

}
  • Haben Sie daran gedacht, fügen Sie das QuartzCore-framework zu Ihrem Projekt?
  • Ja das QuartzCore-framework Hinzugefügt wurde, sowie die CoreGraphics.Rahmen
InformationsquelleAutor jroyce | 2012-03-21
Schreibe einen Kommentar