HomeKit
HomeKit copied to clipboard
Cannot name home
Hi, thanks for the code. I tried to use it but every time i try to name my home, nothing happens and at the console, the following error messages occurred:
2014-09-25 20:38:13.742 HomeKitDemo[10784:530060] primary home : nil count:0 2014-09-25 20:38:13.747 HomeKitDemo[10784:530060] Presenting view controllers on detached view controllers is discouraged <HomeKitDemo.PrimaryHomeViewController: 0x7ff8bc220c40>. 2014-09-25 20:38:18.907 HomeKitDemo[10784:530060] primary home : nil 2014-09-25 20:38:18.922 HomeKitDemo[10784:530060] error creating home: Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)" (connection to service named com.apple.homed.xpc) UserInfo=0x7ff8bc21a950 {NSDebugDescription=connection to service named com.apple.homed.xpc}
Any idea is appreciated.
Thanks and KR
Solick
Solved it. It is necessary to have a provisioning profiles for at least one device installed.
hi @solick howdo you add the provisioning profiles?
Hi limb18, you need to log into the apple developer site and create the provisioning file there. After this, you can simple download/asign the profile in xcode.