/**
- Check if the application is running in an emulator.
*/
fileprivate func detectEmulator() -> Bool {
#if (arch(i386) || arch(x86_64)) && os(iOS)
return true
#else
return false
#endif
}