dylibs in xcode

is there any way to bundle a dylib file in my app’s resources folder and not have it treated as a framework. When Xcode treats it as a framework, my app quits on launch with exit status 5.