英文:
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];
这是作为屏幕截图的错误消息:
我是否漏掉了一些导入?上述带有配置的代码具有有效的 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:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论