including xibs from another project
including xibs from another project
- Subject: including xibs from another project
- From: Roland King <email@hidden>
- Date: Tue, 19 Jan 2010 22:49:24 +0800
I'm building up a library of tools for my iPhone code, as there are no frameworks I'm building static libraries for components. I use one base build path for all my projects (note I think that should be the default, it's awesome and keeps the project directories clean). Some of my 'components' include xibs which need to be added to the main bundle of the target application. My builds look something like this
builddir/Debug-iphonesimulator/<library goes here>
builddir/Debug-iphonesimulator/usr/local/include/<include files here>
builddir/Debug-iphonesimulator/nibs/<xibs go here>
this is great for includes, I just add a User Header Search Path of "$(CONFIGURATION_BUILD_DIR)/usr/local/include" and it works perfectly. But now I want to do the same thing with my xib files (yes a framework would be great but I don't have that). I want to add a xib file to, I think, the copy bundle resources piece of the build and have it pick up the file from nibs/mySuperCool.xib and copy it into the right place in the bundle. I cannot figure out a good way to do this. The xib itself doesn't appear as part of the dependent build product (neither does the .h file in /usr/local/include but it's ok, I reference it in code), so I can't drag it in, I guess I could add a file by hand to the copy bundle resources phase but .. is there a better way? _______________________________________________
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