• 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: build and copy into place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build and copy into place


  • Subject: Re: build and copy into place
  • From: James Bucanek <email@hidden>
  • Date: Fri, 29 Dec 2006 21:21:20 -0700

d2kagw wrote on Saturday, December 30, 2006:

>hi all,
>
>im really new to xcode, so please bear with me...
>i've worked out how to build mulpitle targets in a single project,
>but I was wondering if its possible to move files around once they've
>been built?
>for example, I have a bundle, which gets compiled, and then a cocoa
>application, which has the bundle set as a target dependancy,
>however, I want the cocoa application to include the bundle in its
>resources directory, so, is there any way of telling Xcode to copy
>the bundle into the applications bundle once everything has been
>compiled???

Easy.

Assume:

    Target A builds the Cocoa application
    Target B builds the bundle that you want to copy into Target A's bundle

- Make target A dependent on target B.
- Add a Copy Files phase to target A (make sure it is the last phase in the target). Configure the new phase to copy the results to the desired location in the bundle (Resources, Framework, ...).
- Drag the Product of target B into the Copy Files phase of target A.

Now, when you build A, it first builds B. After building the rest of target A, it will copy the product of target B into the bundle produced by target A.

Read up on Xcode's Copy File phase for more details. <file:///Developer/ADC Reference Library/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_03_bs_build_phases/chapter_31_section_1.html>


James Bucanek
____________________________________________________________________
Author of Beginning Xcode                           ISBN: 047175479X
<http://www.beginningxcode.com/>
 _______________________________________________
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: build and copy into place
      • From: d2kagw <email@hidden>
References: 
 >build and copy into place (From: d2kagw <email@hidden>)

  • Prev by Date: build and copy into place
  • Next by Date: Re: build and copy into place
  • Previous by thread: build and copy into place
  • Next by thread: Re: build and copy into place
  • Index(es):
    • Date
    • Thread