apple auto detect sandbox and production