• 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: Xcode-users Digest, Vol 6, Issue 119
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode-users Digest, Vol 6, Issue 119


  • Subject: Re: Xcode-users Digest, Vol 6, Issue 119
  • From: Tobias Zimmerman <email@hidden>
  • Date: Mon, 02 Mar 2009 15:37:07 -0500
  • Thread-topic: Xcode-users Digest, Vol 6, Issue 119

Thanks, I will give the build script line a try.  In way of further
explanation, I am co-developing the pane and the app, with the app bundle
currently winding up in the pref pane's "resources" directory through a
"copy files" phase in the build (and making the app target a dependency of
the pref pane target).  Thus, it seems that I may need to tweak your build
script line.

If the PrefPane bundle exists as follows:

MyPrefPane.prefPane ->
    Contents ->
        Mac OS ->
            prefpane 'executable'
        Resources ->  (A)
            HelperApp.app ->
                Contents ->
                    Mac OS ->
                        HelperApp executable
                    Resources ->  (B)


The goal is to make "B" a symlink to "A".  If the script runs after the
"copy files" phase, so the helper app is in place, is your syntax correct
(sorry, I always get the 'ln' command messed up forgetting which is the
'target' and which is the 'source').

I think I get it - this script should be run in the PrefPane build phase so
that $BUILT_PRODUCTS_DIRECTORY and $UNLOCALIZED_RESOURCES_FOLDER_PATH will
refer to those settings for the PrefPane target.  Right?

I'll tinker with it, but if you have any further advice I really appreciate
all of the help I can get.


> ------------------------------
>
> Message: 3
> Date: Mon, 2 Mar 2009 16:01:35 -0300
> From: Rainer Brockerhoff <email@hidden>
> Subject: Re: PrefPane with embedded App - Shared Resources
> To: email@hidden
> Cc: Tobias Zimmerman <email@hidden>
> Message-ID: <p06240805c5d1d81dae00@[192.168.1.100]>
> Content-Type: text/plain; charset="us-ascii"
>
> At 09:47 -0800 02/03/09, email@hidden wrote:

> That's exactly what I had to do in the current version of Klicko
> (http://www.brockerhoff.net/klicko). The embedded app has a _relative_ symlink
> to the Resource folder it itself is contained in.
>
> In your build script, include a line like this:
> ln -fs "../../../Resources"
> "$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/HelperApp.app/Contents
> /Resources"
>
> However. If you codesign your helper app _and_ pref panel (you probably
> should, and in that order) be sure to review TechNote 2206 - it recommends a
> different arrangement, but I found this one works well. One the product page I
> link to, above, I give show how to verify the signature - check out both the
> panel and the app.
>


 _______________________________________________
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

  • Prev by Date: memory leaks and C++
  • Next by Date: Problem with PackageBuilder: MyApp.app is missing in after installation
  • Previous by thread: Re: memory leaks and C++
  • Next by thread: Problem with PackageBuilder: MyApp.app is missing in after installation
  • Index(es):
    • Date
    • Thread