You need two goals in your project; the target in Xcode creates a product that is a library, executable, or some other output.
, libatom.dylib, , , , test-atom .
, test-atom, test-atom.c libatom.dylib test-atom. - , , // . (, , , , .)
libatom.dylib test-atom. , test-atom libatom.dylib.
, test-atom ( ) "", libatom.dylib. , test-atom libatom.dylib.