xcodemonodevelopmonomac

MonoMac projects cannot compile: ibtool exited with code 1 - Can't run /Developer/usr/bin/ibtool (no such file)


I'm moving my first steps in MonoMac.

But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get this error compiling:

Error: Can't run /Developer/usr/bin/ibtool (no such file). ibtool exited with code 1

My configuration:

Operating System: Mac OS X 10.7.3 MonoDevelop 2.8.6.5 Runtime: Mono 2.10.8 (tarball Mon Dec 19 17:43:18 EST 2011) GTK 2.24.5 GTK# (2.12.0.0) Mono for Android not installed Apple Developer Tools: Xcode 4.3.1 (1176) Build 4E1019 Monotouch: 5.2.5 MonoDevelop.MonoMac 2.6.0.0

All my Monotouch projects compile fine, and I have no problem with the last XCode (following the Xamarin guidelines I successfully upgraded XCode and moved it from the obsolete Developer folder to the Application folder, and downloaded the updated developer command line tools from apple).

I've tried reinstalling MonoDevelop, but with no success. I always get: "Error: ibtool returned error code 1."

Any help is appreciated.


Solution

  • It looks like the MonoMac addin was never updated to work with Xcode 4.3.

    A temporary workaraound is to setup symlinks in the proper places in /Developer.

    I found the way in the MonoMac forum:

    http://mono.1490590.n4.nabble.com/MonoMac-and-XCode-4-3-ibtool-error-Solution-td4403822.html

    I report it here:

    When using MonoMac and Xcode 4.3, the current MD beta build fails with an ibtool error.

    The solutions is to type the following commands in the Terminal console:

    sudo rm /usr/bin/ibtool

    and then:

    sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool

    Now it compiles fine.