Forum Libraries, Components, and Plugins

Issue with creating xamarin binding using swift.framework (XXX-Swift.h)

On converting xamarin binding using swift.framework some of the classes are not getting converted.

Objective SharpieCommand : sharpie bind -sdk iphoneos13.7 PayCard.framework/Headers/PayCard-Swift.h -scope PayCard.framework/Headers -c -F .

Result :

Parsing 1 header files...
./PayCard.framework/Headers/PayCard-Swift.h:208:1: error: duplicate interface definition for class 'DeviceControllerBBPOS'
@interface DeviceControllerBBPOS : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:208:12: note: previous definition is here
@interface DeviceControllerBBPOS : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:254:1: error: duplicate interface definition for class 'DeviceControllerIDTCH'
@interface DeviceControllerIDTCH : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:254:12: note: previous definition is here
@interface DeviceControllerIDTCH : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:285:1: error: duplicate interface definition for class 'PDeviceLoader'
@interface PDeviceLoader : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:285:12: note: previous definition is here
@interface PDeviceLoader : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:295:1: error: duplicate interface definition for class 'PayCardMaster'
@interface PayCardMaster : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:295:12: note: previous definition is here
@interface PayCardMaster : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:308:1: error: duplicate interface definition for class 'PayCardRDRMgr'
@interface PayCardRDRMgr : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:308:12: note: previous definition is here
@interface PayCardRDRMgr : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:317:27: warning: duplicate definition of category 'PayCard_Swift_317' on interface 'PayCardRDRMgr'
@interface PayCardRDRMgr (SWIFT_EXTENSION(PayCard)) <CBCentralManagerDelegate, CBPeripheralDelegate>
^
./PayCard.framework/Headers/PayCard-Swift.h:129:29: note: expanded from macro 'SWIFT_EXTENSION'

define SWIFT_EXTENSION(M) SWIFT_PASTE(M##Swift, LINE)

                        ^

./PayCard.framework/Headers/PayCard-Swift.h:52:28: note: expanded from macro 'SWIFT_PASTE'

define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)

                       ^

./PayCard.framework/Headers/PayCard-Swift.h:51:35: note: expanded from macro 'SWIFT_PASTE_HELPER'

define SWIFT_PASTE_HELPER(x, y) x##y

                              ^

:25:1: note: expanded from here
PayCard_Swift_317
^
./PayCard.framework/Headers/PayCard-Swift.h:317:12: note: previous definition is here
@interface PayCardRDRMgr (SWIFT_EXTENSION(PayCard)) <CBCentralManagerDelegate, CBPeripheralDelegate>
^
./PayCard.framework/Headers/PayCard-Swift.h:326:1: error: duplicate interface definition for class 'SharedDriverAttr'
@interface SharedDriverAttr : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:326:12: note: previous definition is here
@interface SharedDriverAttr : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:333:1: error: duplicate interface definition for class 'TransactionControllerBBPOS
@interface TransactionControllerBBPOS : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:333:12: note: previous definition is here
@interface TransactionControllerBBPOS : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:427:1: error: duplicate interface definition for class 'TransactionControllerIDTCH'
@interface TransactionControllerIDTCH : NSObject
^
./PayCard.framework/Headers/PayCard-Swift.h:427:12: note: previous definition is here
@interface TransactionControllerIDTCH : NSObject
^

Binding...
1 warning and 8 errors generated.
Error while processing /Users/krishnamadisetty/Downloads/Payrix_SDK_iOS-master/PayrixSDKDemo/Pods/PayrixSDK/PayrixSDK/PayCard.framework/Headers/PayCard-Swift.h.

Done. Exiting with error code 1.
error: Clang failed to parse input and exited with code 1

Can any one please help me to fix those errrors.
Thanks in advance.

Sign In or Register to comment.