• 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
Re: App works when launched from Xcode, not from Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App works when launched from Xcode, not from Finder


  • Subject: Re: App works when launched from Xcode, not from Finder
  • From: PCWiz <email@hidden>
  • Date: Wed, 16 Dec 2009 07:59:57 -0700

Hi Joar,

Thanks for the reply.

What I did to add the frameworks was add the frameworks to my Linked Frameworks and created a new Copy Build phase (target was the Frameworks folder) and then added the frameworks to that phase.

I checked out the link and it tells me to set the Installation Build setting of the framework build Target. However, I am using precompiled frameworks. Would recompiling the frameworks with that setting changed work?

I checked that setting on both of the frameworks I'm using. One has it set to @loader_path/../Frameworks and the other one has it set to @executable_path/../Frameworks (as it should). Would changing @loader_path to @executable_path in the other framework make a difference?

On 2009-12-15, at 11:11 PM, Joar Wingfors wrote:

>
> On 15 dec 2009, at 16.48, PCWiz wrote:
>
>> I have 2 frameworks set in a Copy Files build phase and both are being copied as they should.
>
>
> So you intend for your frameworks to be copied into and used from the bundle of your app? If so, have you set their Installation Directory build setting to "@executable_path/../Frameworks"? If not, that would probably explain why it works from Xcode, but not from Finder. See:
>
> <http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#//apple_ref/doc/uid/20002258-106880>
>
> Xcode sets DYLD_FRAMEWORK_PATH to your build folder, so your app will pick up any copies of your frameworks found there when launched from Xcode.
>
> j o a r
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >App works when launched from Xcode, not from Finder (From: PCWiz <email@hidden>)
 >Re: App works when launched from Xcode, not from Finder (From: Kiel Gillard <email@hidden>)
 >Re: App works when launched from Xcode, not from Finder (From: PCWiz <email@hidden>)
 >Re: App works when launched from Xcode, not from Finder (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: [iPhone] Sample code for live camera stream?
  • Next by Date: Re: App works when launched from Xcode, not from Finder
  • Previous by thread: Re: App works when launched from Xcode, not from Finder
  • Next by thread: Re: App works when launched from Xcode, not from Finder
  • Index(es):
    • Date
    • Thread