Please find the below steps.
- Select Product => Scheme => Edit Scheme or use shortcut :
CMD + <
- Select the
Run
option from left side.
- On Environment Variables section, add the variable OS_ACTIVITY_MODE = disable
For more information please find the below GIF representation.