Tapkey Mobile SDK在iOS中使用Objective C时缺少构建。

huangapple go评论58阅读模式
英文:

Tapkey Mobile SDK missing build when using Objective C for iOS

问题

在尝试在 Objective C 的 AppDelegate 中使用 Tapkey Mobile SDK for iOS 时,我遇到了以下错误消息:

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

这是我用于初始化 ServiceFactory 的代码:

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

这是作为屏幕截图的错误消息:

Tapkey Mobile SDK在iOS中使用Objective C时缺少构建。

我是否漏掉了一些导入?上述带有配置的代码具有有效的 build 方法。我也可以使用 setConfig 来使用上面的配置。

或者是我在 Objective C 中没有正确使用这个库?

这个项目是 React Native。SDK 在 Android 上使用 React Native Bridge 工作,我想将其添加到 iOS 中。

SDK 已经为 iOS 准备好,但不幸的是 AppDelegate 是 Objective C 而不是 Swift。关于如何在这种情况下使用它的文档并不多。

英文:

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:

Tapkey Mobile SDK在iOS中使用Objective C时缺少构建。

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.

答案1

得分: 1

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

英文:

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

huangapple
  • 本文由 发表于 2023年3月9日 21:05:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685030.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定