• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Library not loaded: Main App finds private framework but helpers can't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library not loaded: Main App finds private framework but helpers can't


  • Subject: Library not loaded: Main App finds private framework but helpers can't
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 23 Nov 2009 20:48:09 -0800

My app has a Main App and two helpers which all link to a large private framework which does all my heavy lifting.  The package looks, in part, as shown below:

Contents
    MacOS
        MyApp
    Helpers
        MyApp-Helper1
        MyApp-Helper2
    Frameworks
        Bkmxwork.framework
            Versions
                A
                    Bkmxwork
        Sparkle.framework
            Versions
                A
                    Sparkle

My private "heavy lifting" framework is Bkmxwork.  Bkmxwork links to the Sparkle framework.

The 'Installation Directory' in the Sparkle framework target is "@loader_path/../Framework".  This is all pretty standard stuff, I believe, except for my 'Helpers' directory.  It all worked fine last week when built in Xcode 3.1 .  Then I upgraded to Mac OS 10.6 and Xcode 3.2.  As expected, a few hours of fussing around was necessary to get everything building again.  For example, because I use Sparkle in 10.4 apps, I hard-wired its compiler setting to gcc 4.0.

Well, I just discovered that the two helpers crash on launch:

Dyld Error Message:
  Library not loaded: @loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
  Referenced from: /Users/jk/Documents/Programming/Builds/Debug/MyApp.app/Contents/Helpers/../Frameworks/Bkmxwork.framework/Versions/A/Bkmxwork
  Reason: image not found

It looks to me like that Sparkle framework is right where that message says it can't be found.  The main app finds and runs its code with no problem.  Why might my helpers not be able to find it any more?

Thanks,

Jerry Krinock _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Library not loaded: Main App finds private framework but helpers can't
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: XCode 3.2.1 distributed builds don't work in our company.
  • Next by Date: Re: Library not loaded: Main App finds private framework but helpers can't
  • Previous by thread: linking against libSystem.B_debug.dylib?
  • Next by thread: Re: Library not loaded: Main App finds private framework but helpers can't
  • Index(es):
    • Date
    • Thread