Reputation: 16430
I'm totally stuck in a operation that might be really simple...adding Sparkle to a project created in Xcode 4. I did these operations :
Added to "link Binary With Libraries" but it generated this error:
dyld: Library not loaded: @loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle Referenced from: /Users/me/Library/Developer/Xcode/DerivedData/MyApp-esurnmkwvxcgcxbbrdgsobkoimfv/Build/Products/Release/Myapp.app/Contents/MacOS/MyApp
Reason: image not found
When i launch my application i get a warning :
Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/...etcetcetc
And obviously due to this warning the updater never starts. What I missed?
Upvotes: 2
Views: 1879
Reputation: 428
You also need to import the Sparkle framework into the header file for your class:
#import <Sparkle/Sparkle.h>
@implementation YourClass : NSObject
{
}
This isn't mentioned in your question as one of the steps you've taken, hence I'm assuming it hasn't been done.
Upvotes: 5