• 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
How do I copy Build Configuration-specific frameworks into my app bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I copy Build Configuration-specific frameworks into my app bundle?


  • Subject: How do I copy Build Configuration-specific frameworks into my app bundle?
  • From: Jesper Papmehl <email@hidden>
  • Date: Mon, 18 Jul 2005 10:56:32 +0200

Hi!

I build some frameworks and then an app that uses those frameworks using Xcode 2.1.

I build the app and each framework in debug and release flavors. When building the release version of the app, I want to use the release versions of the frameworks, and when building the debug version I want to use the debugging frameworks.

I put each version of the frameworks into their own subfolders. I have managed to get the app to link to the correct version of the frameworks by setting Framework Search Paths differently for each Build Configuration.

However, I get into trouble when trying to copy the frameworks into the Contents/Frameworks folder of my app bundle. Since I haven't been able to find an automatic function for this (copy this framework that I link to into the app bundle), I tried using a Copy Files Build Phase. However, it seems only to be possible to refer to a file by it's name, not by it's path, so I can't get Xcode to copy different files when using different build styles.

Do I really have to resort to a Run Shell Script Build Phase? If so, what environment variable do I need to use to get the path to the app bundle being built? I haven't been able to find a single one that will give me that, do I have to build the path myself using several variables?


TIA

/Jesper Papmehl
_______________________________________________
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: How do I copy Build Configuration-specific frameworks into my app bundle?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Universal Binary that runs on 10.3.x and up on PPC and 10.4.1 and up on Intel
  • Next by Date: Re: Universal Binary that runs on 10.3.x and up on PPC and 10.4.1 and up on Intel
  • Previous by thread: Re: Setting Project Dependencies
  • Next by thread: Re: How do I copy Build Configuration-specific frameworks into my app bundle?
  • Index(es):
    • Date
    • Thread