title: Link mono in XCode
body: <p>I am trying to embed the mono runtime in a C++ OS X console app (Will be used for scripting logic in a home-brew game engine, much like Unity3D). I am using XCode as the IDE and am failing spectacularly at linking the mono libraries. I come from the dark side (Windows) and am new to mac libraries and XCode.</p>
  
  <p>I have successfully built mono and referenced the header folder but get a slew of APPLE-MOCH-O linkers errors no matter what .a I add to the project. I have also successfully built this sample project <a href="https://github.com/inkdev/Embedded-Mono-Sample" rel="nofollow">https://github.com/inkdev/Embedded-Mono-Sample</a> for windows. The mono site on the topic <a href="http://www.mono-project.com/Embedding_Mono" rel="nofollow">http://www.mono-project.com/Embedding_Mono</a> is confusing and of little use to me.</p>
  
  <p>Help would be hugely appreciated.</p>
  
  <p>EDIT:
  If I remember correctly, I followed these commands <a href="http://www.mono-project.com/Compiling_Mono_on_OSX" rel="nofollow">http://www.mono-project.com/Compiling_Mono_on_OSX</a> and got the source from here: <a href="https://github.com/mono/mono/tree/master/mono" rel="nofollow">https://github.com/mono/mono/tree/master/mono</a>, and used make and make install. I added the /mono/include... folder to XCode's "Header Search Path" and that resolved all the unfound includes. Under /mono/lib/ I have tried several different *.dynlib files ( drag them into XCode ) but none have worked. libmono-2.0.1.dylib says "..file was built for unsupported file format..", and libmonoboehm-2.0.dylib simply says "...Undefined symbols for architecture x86_64..."</p>