I updated to iOS 17.2, and now I can save and manage credentials. However, I ran into a problem because the ThreadNetwork profile on my device expired. I reinstall it again, but I'm getting an error saying the "ThreadNetwork Framework Support" profile is no longer valid.
Post
Replies
Boosts
Views
Activity
Hi, I have the same setup and getting the same error like you, did you manage to solve this?
@TeunVRAthom would you mind sharing what you did to make the THClient work?
In your previous reply, you were experiencing this error, "THClient:[THClient] Client: -[THClient connectToXPCService]_block_invoke - CTCS XPC Client is invalidated". What did you do to fix it?
Thanks!
I wonder what's wrong with my setup.
Installed the ThreadNetwork mobile profile on the iOS 17.1 device.
Setup MatterSupport
Added the ThreadNetwork and MatterSupport framework.
Added the _matter._tcp and _meshcop._udp on the Info.plist file.
When calling this function provided from the docs, I'm still getting Client: -[THClient connectToXPCService]_block_invoke - CTCS XPC Client is invalidated error.
func obtainCredentials(borderAgentID: Data) async -> (cred: THCredentials? ,err: Error? ) {
let client = THClient()
var credential: THCredentials?
var err:Error?
do {
credential = try await client.credentials(forBorderAgentID: borderAgentID as Data)
} catch {
err = error
}
return (credential, err)
}
Do you have the corresponding entitlement enabled on the app? Or you just install the mobile profile on the device?
I'm asking because I was never able to make it work. We don't have the corresponding entitlement yet, we only install the mobile profile on an iOS 17.1 device.
I'm getting an error just by doing let thClient = THClient() in a function.
Same issue as @TeunVRAthom. I installed the ThreadNetwork mobile profile on an iOS 17 device and I'm getting the same error whenever I'm trying to access the THClient.