ThingSmartMatterExtensionKits

App development related product technical discussions, including OEM App, App SDK, device control interface development, mini program development and other topics.


Post Reply
spoxpro
Posts: 3

I'm try to discover a matter gateway the auto magic method. I have this working on android. I've followed the instructions in the documentation for matter pairing in the iOS section.

I have added the pods to my pod file

pod "ThingSmartCryption", :path =>'./'
pod 'ThingSmartHomeKit', '~> 5.1.0'
pod "ThingSmartMatterExtensionKit"

and done pod update, pod install, numerous times.

I can import all the modules from ThingSmartHomeKit, but it won't import ThingSmartMatterExtensionKits

import ThingSmartMatterExtensionKits <== No such module 'ThingSmartMatterExtensionKits'
import ThingSmartHomeKit
import ThingSmartBLEKit
import ThingSmartActivatorKit

Which means I can't use the

ThingSmartMatterDiscoveryActivator.sharedInstance().startDiscovery()

to start discovery.

ThingSmartMatterExtensionKit has installed fine, it installed v0.1.1. I see it in the Pods folder along with all the others. It contains the Frameworks and Supporting Files folders which has the framework and platform files.

How do I fix ' No such module 'ThingSmartMatterExtensionKits'

huangdaxia
Posts: 4

Re: ThingSmartMatterExtensionKits

please use pod "ThingSmartMatterExtensionKit", '5.0.5'

and run pod update ThingSmartMatterExtensionKit --repo-update

spoxpro
Posts: 3

Re: ThingSmartMatterExtensionKits

Thank you for your reply. I have installed ThingSmartMatterExtensionKit", ‘5.0.5’.

Follow the instructions given here
https://developer.tuya.com/en/docs/app- ... 5ei0oqryag

Im am still getting errors for both methods of pairing :-

ThingSmartMatterActivator.sharedInstance().parseSetupCode("code”)
=> ThingSmartMatterActivator has no method parseSetupCode

and

ThingSmartMatterDiscoveryActivator.sharedInstance().startDiscovery()
=> Cannot find ThingSmartMatterDiscoveryActivator in scope

I have imported both ThingSmartMatterExtensionKit and ThingSmartMatterKit. If I search the pod files I can't find parseSetupCode nor ThingSmartMatterDiscoveryActivator.

Is there a newer version of ThingSmartMatterKit ? I currently have 4.5.10.

huangdaxia
Posts: 4

Re: ThingSmartMatterExtensionKits

We apologize for any inconvenience this may have caused.

please use pod "ThingSmartMatterKit", '5.2.8' and run pod update ThingSmartMatterKit --repo-update

spoxpro
Posts: 3

Re: ThingSmartMatterExtensionKits

thanks

Post Reply