[Sparkle] Newbie Question

Jerry Krinock jerry at sheepsystems.com
Wed Apr 23 19:03:39 PDT 2008


On 2008 Apr, 23, at 17:26, Tom McKenzie wrote:

> I’m trying to follow the docs using XCode 2.5 on a very simple  
> Cocoa app and I get an error “Unknown class ‘SUUpdater’ in nib  
> file.

I believe this happens when you launch your app; i.e. it's a runtime  
error.  It means that the runtime system can't find a definition of  
SUUpater.  There are two essential things you need to do:

1.  You must "link" Sparkle.framework into your target.  To do this,  
drag the Sparkle.framework built product into the Groups & Files of  
your app project in Xcode.  If it's already there, set your Project ►  
Active Target to your app target (if there's more than one) then back  
in Groups & Files right-click on the Groups & Files column heading and  
turn on the "Target Membership".  Then scroll back down to  
Sparkle.framework and make sure its box in the left column is checked.

2.  The other thing is to check and see if Sparkle.framework is in  
your product package's Contents/Frameworks.  If it's not, you need to  
add a Copy Files build phase, setting the destination to  
"Frameworks".  (Later, you might want to do instead this in a Run  
Script Build Phase.  This has advantages for some developers).

Not sure which "docs" you are reading, but to get the real scoop on  
the above, read this:

http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#/ 
/apple_ref/doc/uid/20002258-106880

You are trying to "embed a Private Framework from a Separate Project  
into your Application Bundle".  The steps in the Sparkle project are  
already done for you.



More information about the Sparkle mailing list