Copy files phase assumes root build products folder for dependency frameworks?
Copy files phase assumes root build products folder for dependency frameworks?
- Subject: Copy files phase assumes root build products folder for dependency frameworks?
- From: "Michael Williamson" <email@hidden>
- Date: Thu, 18 Sep 2008 08:44:59 +1000
I have a single xcode project with two products.
One product is a framework. The other is an executable, that depends directly on the above framework.
The short version: I setup the dependency framework to build to a subfolder of my custom build products location. That builds fine to my specified subfolder.
But in my Copy Files build phase for the executable product, it's assuming the framework is in the root build products location, not the subfolder. So it fails.
I was hoping XCode would know where the dependency framework got built to. Not so?
The details( long, apologies ):
I use a custom build products location (set under XCode Preferences, Building tab), aka $BUILD_DIR.
But I then set the dependent framework's "Per-configuration build products path" to $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Frameworks
3rd party frameworks were also placed here, and added as External Frameworks to the executable target.
A Copy Files build phase was added to copy the local and 3rd party frameworks to the executable bundle's Content/Frameworks.
Local framework was dragged and dropped into this phase from its Products entry, the others from under the External Frameworks group.
But this fails for the dependency framework: (2nd argument on first line should include "Frameworks")
PBXCp <buildDir>/Debug/rtr.app/Contents/Frameworks/OgreCEGUIRenderer.framework <buildDir>/Debug/OgreCEGUIRenderer.framework
...
pbxcp: OgreCEGUIRenderer.framework: No such file or directory
Yet it succeeds for the external frameworks: (2nd argument on first line DOES include "Frameworks")
PBXCp <buildDir>/Debug/rtr.app/Contents/Frameworks/Ogre.framework <buildDir>/Debug/Frameworks/Ogre.framework
<no error here>
I expected XCode to use it's knowledge of where the local framework is being built to, as the source for the Copy Files phase.
Is that expectation wrong?
Xcode 3.1
Cheers,
Michael
_______________________________________________
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