Hello,

On Mon, Apr 9, 2012 at 4:44 PM, Conway Wieler
<[email protected]> wrote:
> I updated my MonoDevelop to 2.8.8.4 and now the Debug build of our app
> crashes during startup with an "Unable to resolve pinvoke method" error. The
> Release build still works properly. Our app has a bunch of core C/C++
> libraries and the UI layer is C#. We see the error the first time a C
> function is P/Invoked from our C# code. I tried to P/Invoke a few other C
> functions and they produce the same error; it appears that the C functions
> are no longer resolvable using the P/Invoke mechanism. Thinking that maybe
> the functions were removed because of Linking, I tried all three settings
> for the Linking Behaviour option (Don't Link, Link All & Link SDK) and it
> failed for all three.

This is expected since the linking is done with MonoTouch (mtouch
tool). IOW updating MonoDevelop should not change how the linker
operate (so having identical results is normal).

> What changed in MonoDevelop 2.8.8.4 that would cause
> this?  If we revert back to MD 2.8.6.5, our Debug app works again.

That one is unexpected. Can you please add "-v -v -v" to the
"additional mtouch arguments" of your project then do a *full* rebuild
of your solution (on both version of MD). One log should show the
build output of the working app and the other should show the build
output for the not-working app. The please attach both logs to a bug
report at http://bugzilla.xamarin.com

> MonoDevelop: 2.8.8.4
>
> Mono: 2.10.9
>
> MonoTouch: 5.2.10
>
> Xcode: 4.2.1 (used to create the C/C++ binaries)

It could be an issue related to Xcode 4.3 - since supporting this new
version required a few changes in MonoDevelop (that would be present
in 2.8.8.x but might not be in 2.8.6.x).

Sebastien
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to