Search code examples
bindingxamarin.iosarcgis

Using bTouch to bind to the ArcGIS iOS SDK


I apologize for such a long message in advance, but I'm trying for detail here...

I'm working on using bTouch to create a compiled dll for referencing the ArcGIS iOS SDK. When running bTouch using :

/Developer/MonoTouch/usr/bin/btouch libArcGIS.cs

it returns the following error

/tmp/fp2ivuh8.3gj/IncidentReportApp/AGSMutablePolygon.g.cs(39,31): 
    error CS0102: The type `IncidentReportApp.AGSMutablePolygon'  
    already contains a definition for `selAddPointToRing'
/tmp/fp2ivuh8.3gj/IncidentReportApp/AGSMutablePolygon.g.cs(38,31):  
    (Location of the symbol related to previous error)
/tmp/fp2ivuh8.3gj/IncidentReportApp/AGSMutablePolyline.g.cs(39,31): error CS0102:  
    The type `IncidentReportApp.AGSMutablePolyline' 
     already contains a definition for `selAddPointToPath'
/tmp/fp2ivuh8.3gj/IncidentReportApp/AGSMutablePolyline.g.cs(38,31):  
    (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

I checked my cs class and neither type is referenced\invoked. I'd like to understand why this message is occuring.

I have tried to use the instructions (and downloaded) code by Al Pascual at How to use the ArcGIS iPhone SDK with MonoTouch to call the Map View, but when attempting to launch the view with the code causes a crash. When I try to debug, it locks up when adding a mapping layer. I tested this with the MKMapView, but didn't experience the same behavior.


Solution

  • Use the solution I provide with the correct bindings