[Sparkle] Status 5
Justin Bur
jbur at druide.com
Sun Mar 9 13:49:40 PDT 2008
Frameworks inside the application bundle should go in Frameworks, not
Resources. If Xcode is not copying it there, it's probably because
the destination of the Copy Files build phase is not set correctly.
At runtime, frameworks in standard locations (*/Library/Frameworks)
are found by a search path; this search path can be (but is rarely)
altered in the application using a build setting. Frameworks in non-
standard locations, including those in the app bundle, are usually
found using information which I believe is copied at build time from
the framework to the application.
This means that when building the framework (Sparkle in this case),
its Installation Directory build setting must correspond to the
location where it is actually going to be used. For a framework in an
application bundle, it should be "@executable_path/../Frameworks".
It is somewhat non-intuitive that you have to tell the framework
where apps are going to be looking for it, and then make sure you put
the framework in that same place at the time you build the app (or
install the framework).
Recommended reading (as a previous poster mentioned): Framework
Programming Guide
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPFrameworks/index.html
Justin
On Mar 9, 2008, at 16:12, Matt Coneybeare wrote:
> UPDATE:
>
> If I manually create the folder SimpleScrobbler.app/Frameworks
> and manually copy in the Sparkle.framework file, it runs and works.
>
> Any idea as to why xcode is keeping it in my resources folder and
> not creating the Frameworks folder? Or why the file requested is
> being looked for in Frameworks/Sparkle.framework instead of the
> actual location?
>
More information about the Sparkle
mailing list