[MonoTouch] Still repro bug 662903

Jeff Stedfast jeff at xamarin.com
Thu Oct 6 18:21:34 EDT 2011


Hi Kris,

Sorry for the delayed response. It looks like you are including that partial
class implementation in your btouch command-line. I'll have to look over the
docs as they may need to make this clearer, but as far as I know, if you are
going to supplement the binding with partial classes/methods, you need to
have btouch generate sources like this:

mkdir -p ios && /Developer/MonoTouch/usr/bin/btouch cocos2d.cs enums.cs
--tmpdir=ios

and then use /Developer/MonoTouch/usr/bin/smcs to compile the iOS assembly,
feeding it the *.cs files generated in ios/, enums.cs, and your .cs files
where you implemented any partial classes.

Some good examples of this is in http://github.com/mono/monotouch-bindings

Hope that helps!

Jeff

On Thu, Sep 29, 2011 at 7:27 PM, Kris Owens <krisow at startcom.com> wrote:

> Hi - I've been hitting this exact same bug:
> https://bugzilla.novell.com/show_bug.cgi?id=662903
>
> I tried the demo code shown at
> http://ios.xamarin.com/Documentation/Binding_New_Objective-C_Types, and I
> get the same error: "Missing partial modifier on declaration of type
> `Cocos2D.Camera'. Another partial declaration of this type exists"
>
> I'm running Monotouch 4.2.2. The bug says this was fixed in btouch 3.2 - is
> btouch updated separately from Monotouch? I couldn't find any information on
> this.
>
> Any help would be appreciated
>
> Thanks
> Kris
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111006/80bc32bc/attachment.html 


More information about the MonoTouch mailing list