Page 1 of 1

ThingSmartMatterExtensionKits

Posted: 2023年 Aug 19日 19:34
by spoxpro

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'


Re: ThingSmartMatterExtensionKits

Posted: 2023年 Aug 21日 14:03
by huangdaxia

please use pod "ThingSmartMatterExtensionKit", '5.0.5'

and run pod update ThingSmartMatterExtensionKit --repo-update


Re: ThingSmartMatterExtensionKits

Posted: 2023年 Aug 21日 16:57
by spoxpro

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.


Re: ThingSmartMatterExtensionKits

Posted: 2023年 Aug 22日 16:33
by huangdaxia

We apologize for any inconvenience this may have caused.

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


Re: ThingSmartMatterExtensionKits

Posted: 2023年 Aug 23日 02:24
by spoxpro

thanks