Hi, I found this solution, and it works for me. Open Xcode scheme editor and add a new environment variable OS_ACTIVITY_MODE and set to disable.
Topic:
App & System Services
SubTopic:
Core OS
Tags: