libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID

XCode debug启动时报这个:

libMobileGestalt MobileGestaltSupport.m:153: xxx does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled

libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see )

解决方法 Edit Scheme-> Run -> Arguments, 在Environment Variables里边添加

OS_ACTIVITY_MODE = Disable