0

I get this error message when trying to use the Tapkey Mobile SDK for iOS in a Objective C AppDelegate:

No visible @interface for 'TKMServiceFactoryBuilder' declares the selector 'build'

This is the code I use to initialize the ServiceFactory:

TKMServiceFactoryBuilder *builder = [[TKMServiceFactoryBuilder alloc] init]; self.tapkeyServiceFactory = [builder build];

Here is the error message as screenshot:

enter image description here

Am I missing some imports? The code above with the config has a valid build method. I can also use the setConfig to use the config above.

Or am I just not using the library correctly in Objetcive C?

The project is React Native. The SDK is working with Android using the React Native Bridge and I want to add it to iOS to.

The SDK is prepared for iOS but unfortunately the AppDelegate is in objetcive c and not swift. There is no documentation on how to use it with that.

Tarik Huber
  • 7,061
  • 2
  • 12
  • 18

1 Answers1

1

The Tapkey Mobile SDK for iOS does not support objc: https://developers.tapkey.io/mobile/ios/getting_started/#requirements

Harald
  • 465
  • 2
  • 8
  • So I would need to convert my Objective C AppDelegate to one written in swift? – Tarik Huber Mar 09 '23 at 13:24
  • 1
    Either that or adding an wrapper for the initialisation part, if it not possible to convert the AppDelegate to objc itself. Anyway, the most of the services and types are plain swift and won't be accessible through objc. For these adapters would have to be implemented. The reason is that the SDK uses a lot of async code (promises etc.) which rely on generic types. Generic types are not supported by objc in that way. Additional not all native swift types are available via in objc. – Harald Mar 09 '23 at 16:20