views:

57

answers:

0

Hi, I'm working on an iPhone application and I'd like to use the XFSM libraries (see http://fsmbook.com for info) for interacting with finite-state machines. Anyway, I included the two libraries into my program using "add existing frameworks" but when I compile I get the error:

dyld: Library not loaded: libbreadline.dylib

Referenced from: /Users/dgraham/Library/Application Support/iPhone Simulator/User/Applications/43970C15-D3AE-4B3E-9E8C-277E49293486/Bunpou.app/Bunpou

Reason: image not found

So, I went into the dir and ran otool -L on Bunpou and got (note last 2):

/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 678.51.0)

libbreadline.dylib (compatibility version 0.0.0, current version 0.0.0)

libxcfsm.dylib (compatibility version 0.0.0, current version 0.0.0)

So, why isn't it looking for them in /usr/local/lib, or... something? If I manually copy the files into the Bunpou.app directory then it runs fine, but that feels like the wrong way to go about doing it.

Any advice on how to properly link these libraries is appreciated. Thanks. P.S. I am very novice when it comes to using Xcode, so please be gentle!