Homekit often adds device failures. What are the common causes of this problem?

Recently, using homekit to add devices often fails, can not be added, what are the reasons for this problem, there is a good way to solve this problem, using addAndSetupAccessories this API to add devices, look forward to your reply, thank you!