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.