• 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 2.1 and Copy Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.1 and Copy Files


  • Subject: Re: XCode 2.1 and Copy Files
  • From: email@hidden
  • Date: Tue, 19 Jul 2005 16:06:52 +0200

On 19 Jul 2005, at 15:51, James Bucanek wrote:


It should "just work" in 2.1 as well. Do a Get Info on the framework you build (in the Products group of the source groups). The path type should be "Product Relative." This is a special path type that should change locations automatically when you change build configurations. This assumes, of course, that the target that builds your framework and the target that builds your application are in the same project. If the two are in different projects, I suspect you'll have to get tricky.


They're different projects. We don't create "build the universe" projects and do release builds off the command line with xcodebuild (via makefiles).

Anyway, I wrote a Run Script build phase to solve the problem, though it's not an acceptable solution really. For others who get the same problem, here's the shell script:

--- cut here ---
#!/bin/bash

DESTINATION_DIR="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH"

function copyframework {
  if [ -d "$DESTINATION_DIR/$1" ];
  then
    rm -rf "$DESTINATION_DIR/$1"
  fi

  cp -R "$2/$BUILD_STYLE/$1" "$DESTINATION_DIR/$1"
}

# Create the Frameworks folder

if ! [ -d "$DESTINATION_DIR" ];
then
  mkdir -p "$DESTINATION_DIR"
fi

# Copy the frameworks

copyframework "Some.framework" "../Frameworks/Some/build"
copyframework "SomeOther.framework" "../Frameworks/SomeOther/build"
--- cut here ---

I also did something similar for dylibs in the "Shared Support" folder.


Was this a new project document, or did you upgrade from pre-2.1?



I upgraded a 2.0 project which was working fine.


 _______________________________________________
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: Re: XCode 2.1 and Copy Files
  • Next by Date: Prevent editor from wrapping mid-word?
  • Previous by thread: Re: XCode 2.1 and Copy Files
  • Next by thread: Re: XCode 2.1 and Copy Files
  • Index(es):
    • Date
    • Thread