• 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
Building and using the BWToolkit project from within another project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building and using the BWToolkit project from within another project


  • Subject: Building and using the BWToolkit project from within another project
  • From: David Keegan <email@hidden>
  • Date: Sat, 9 Jan 2010 11:52:28 -0800

Hello everyone!

I'm working on the open source project Murky:
http://bitbucket.org/snej/murky

I'm trying to setup a streamlined way of building BWToolkit from source, within the Murky project.

For those who don't know BWToolkit is a framework and interface builder plugin. The framework compiling and linking works, the problem I'm having is in using the compiled interface builder plugin for compiling the xib files.

Here's the setup:
- The BWToolkit project is included in Murky.
- The BWToolkit 'All' target is a direct dependency of the Murky target.
- Then the framework is linked to, and copied to the Frameworks directory of the app.

I need the interface builder plugin to be used when compiling the xib files.

CompileXIB English.lproj/Projects.xib
cd /Users/dkeegan/dev/mercurial/projects/murky
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/dkeegan/dev/mercurial/projects/murky/build/Debug/Murky.app/Contents/Resources/English.lproj/Projects.nib /Users/dkeegan/dev/mercurial/projects/murky/English.lproj/Projects.xib

/* com.apple.ibtool.errors */
/Users/dkeegan/dev/mercurial/projects/murky/English.lproj/Projects.xib: error: Unable to resolve plug-in dependency for "Projects.xib".
    Recovery Suggestion: Locate the com.brandonwalkin.BWToolkit Interface Builder plug-in to continue opening this document. Consider using the --plugin option or Interface Builder's plug-in preferences to resolve this dependency.

There is a --plugin flag for ibtool that appears to work, so I was thinking a solution might be to make a custom xib compilation task and pass the compiled plugin to the ibtool call.
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --plugin /Users/dkeegan/dev/mercurial/projects/BWToolkit/build/Debug/BWToolkit.ibplugin --compile /Users/dkeegan/dev/mercurial/projects/murky/build/Debug/Murky.app/Contents/Resources/English.lproj/Projects.nib /Users/dkeegan/dev/mercurial/projects/murky/English.lproj/Projects.xib

I'm not sure how to setup a custom xib compilation task. Has anyone ever done anything like this, or does anyone have a better solution?

If you want to check out the source I uploaded it to a fork on bitbucket:
http://bitbucket.org/keegan3d/murky-bwtoolkit/

Thanks!

Dave
 _______________________________________________
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: Building and using the BWToolkit project from within another project
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Interface Builder Freezes
  • Next by Date: Re: Xcode-users Digest, Vol 7, Issue 16
  • Previous by thread: Re: Interface Builder Freezes
  • Next by thread: Re: Building and using the BWToolkit project from within another project
  • Index(es):
    • Date
    • Thread