开发者

Using bTouch to bind to the ArcGIS iOS SDK

开发者 https://www.devze.com 2023-02-14 14:31 出处:网络
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.

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 开发者_StackOverflow中文版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.


The error means that you defined more than one method mapping the same objective-C method.

Without the source, it is hard to diagnose.


I'm doing the same thing actually, I heavily modified the old "parser" library and am working on doing it now, hopefully dropping it in the public domain.

I'm seeing a similar (and probably related) problem in the ApiDefinition, there is a class AGSGPResultLayer that derives from AGSDynamicLayer. The AGSGPResultLayer overrides a property called Credential among other and since both are defining the same property.

How should over-riden properties be handled in bTouch? I'm guessing I'm missing something in the syntax.


Use the solution I provide with the correct bindings

0

精彩评论

暂无评论...
验证码 换一张
取 消