“Apple Mach-O de l'éditeur de liens de commande a échoué avec le code de sortie 1”

Je suis en train de mettre en œuvre les SVProgressHUD de l'indicateur d'activité. J'ai copié les classes de mon projet et ajouté le code suivant à mon appDelegate, mais ne peut pas comprendre pourquoi il se bloque.

- Je obtenir ils d'erreur suivant et ne sais pas où chercher pour résoudre ce problème:

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) 

Voici le 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];

}
Avez-vous pensez à ajouter la QuartzCore cadre de votre projet?
Oui le QuartzCore cadre a été ajoutée ainsi que les CoreGraphics.cadre

OriginalL'auteur jroyce | 2012-03-21