Skip to content

Instantly share code, notes, and snippets.

@KaneCheshire
Created September 26, 2019 07:44
Show Gist options
  • Save KaneCheshire/ea478f9f5ec6c566838b3af9af8301da to your computer and use it in GitHub Desktop.
Save KaneCheshire/ea478f9f5ec6c566838b3af9af8301da to your computer and use it in GitHub Desktop.
Output for the environment variables available on iOS simulators using `ProcessInfo.processInfo.environment`
{
"CA_ASSERT_MAIN_THREAD_TRANSACTIONS": "0",
"CA_DEBUG_TRANSACTIONS": "0",
"CFFIXED_USER_HOME": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/Containers/Data/Application/4F2F5AA6-B639-45DE-9851-904569336CC4",
"CUPS_SERVER": "/private/tmp/com.apple.launchd.rz10bWAeQ8/Listeners",
"DYLD_FALLBACK_FRAMEWORK_PATH": ":",
"DYLD_FALLBACK_LIBRARY_PATH": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib",
"DYLD_FRAMEWORK_PATH": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator:/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator",
"DYLD_LIBRARY_PATH": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator:/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator",
"DYLD_ROOT_PATH": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot",
"DYLD_SHARED_CACHE_DIR": "/Users/kanecheshire/Library/Developer/CoreSimulator/Caches/dyld/18F132/com.apple.CoreSimulator.SimRuntime.iOS-13-0.17A577a",
"HOME": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/Containers/Data/Application/4F2F5AA6-B639-45DE-9851-904569336CC4",
"IOS_SIMULATOR_SYSLOG_SOCKET": "/tmp/com.apple.CoreSimulator.SimDevice.2F7BBCEE-1020-4C33-9740-DCB7640911A4/syslogsock",
"IPHONE_SHARED_RESOURCES_DIRECTORY": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data",
"IPHONE_SIMULATOR_ROOT": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot",
"IPHONE_TVOUT_EXTENDED_PROPERTIES": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/Library/Application Support/Simulator/extended_display.plist",
"LS_ENABLE_BUNDLE_LOCALIZATION_CACHING": "1",
"MTC_CRASH_ON_REPORT": "1",
"NSUnbufferedIO": "YES",
"OS_ACTIVITY_DT_MODE": "YES",
"PATH": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/sbin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/sbin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/local/bin",
"RWI_LISTEN_SOCKET": "/private/tmp/com.apple.launchd.NrvXR2VnWG/com.apple.webinspectord_sim.socket",
"SIMULATOR_AUDIO_DEVICES_PLIST_PATH": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/var/run/com.apple.coresimulator.audio.plist",
"SIMULATOR_AUDIO_SETTINGS_PATH": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/var/run/simulatoraudio/audiosettings.plist",
"SIMULATOR_BOOT_TIME": "1569346826",
"SIMULATOR_CAPABILITIES": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/DeviceTypes/iPhone 11.simdevicetype/Contents/Resources/capabilities.plist",
"SIMULATOR_DEVICE_NAME": "Clone 1 of iPhone 11",
"SIMULATOR_EXTENDED_DISPLAY_PROPERTIES": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/Library/Application Support/Simulator/extended_display.plist",
"SIMULATOR_FRAMEBUFFER_FRAMEWORK": "/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Resources/Platforms/iphoneos/Library/PrivateFrameworks/SimFramebuffer.framework/SimFramebuffer",
"SIMULATOR_HID_SYSTEM_MANAGER": "/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Resources/Platforms/iphoneos/Library/Frameworks/SimulatorHID.framework",
"SIMULATOR_HOST_HOME": "/Users/kanecheshire",
"SIMULATOR_LEGACY_ASSET_SUFFIX": "iphone",
"SIMULATOR_LOG_ROOT": "/Users/kanecheshire/Library/Logs/CoreSimulator/2F7BBCEE-1020-4C33-9740-DCB7640911A4",
"SIMULATOR_MAINSCREEN_HEIGHT": "1792",
"SIMULATOR_MAINSCREEN_PITCH": "326.000000",
"SIMULATOR_MAINSCREEN_SCALE": "2.000000",
"SIMULATOR_MAINSCREEN_WIDTH": "828",
"SIMULATOR_MEMORY_WARNINGS": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/var/run/memory_warning_simulation",
"SIMULATOR_MODEL_IDENTIFIER": "iPhone12,1",
"SIMULATOR_PRODUCT_CLASS": "N104",
"SIMULATOR_ROOT": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot",
"SIMULATOR_RUNTIME_BUILD_VERSION": "17A577a",
"SIMULATOR_RUNTIME_VERSION": "13.0",
"SIMULATOR_SHARED_RESOURCES_DIRECTORY": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data",
"SIMULATOR_UDID": "2F7BBCEE-1020-4C33-9740-DCB7640911A4",
"SIMULATOR_VERSION_INFO": "CoreSimulator 681.5.1 - Device: Clone 1 of iPhone 11 (2F7BBCEE-1020-4C33-9740-DCB7640911A4) - Runtime: iOS 13.0 (17A577a) - DeviceType: iPhone 11",
"SQLITE_ENABLE_THREAD_ASSERTIONS": "1",
"SWIFTUI_VIEW_DEBUG": "287",
"TESTMANAGERD_REMOTE_AUTOMATION_SIM_SOCK": "/private/tmp/com.apple.launchd.fZ7JJkoeTW/com.apple.testmanagerd.remote-automation.unix-domain.socket",
"TESTMANAGERD_SIM_SOCK": "/private/tmp/com.apple.launchd.BhXUl0OMdK/com.apple.testmanagerd.unix-domain.socket",
"TMPDIR": "/Users/kanecheshire/Library/Developer/XCTestDevices/2F7BBCEE-1020-4C33-9740-DCB7640911A4/data/Containers/Data/Application/4F2F5AA6-B639-45DE-9851-904569336CC4/tmp",
"XCTestConfigurationFilePath": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Logs/Test/Test-Retryable-Example-2019.09.26_08-38-37-+0100.xcresult/Staging/1_Test/Diagnostics/Retryable_ExampleUITests-78309EFB-4AFC-43A7-9A5A-CE4E0380516F/Retryable_ExampleUITests-0C4F2AB5-37E8-49FB-AC94-3564FFC3420F/LaunchSessions/A4FC40B6-D2EC-4B6F-91EC-C765879DC70E/remote-container/tmp/Retryable_ExampleUITests-A4FC40B6-D2EC-4B6F-91EC-C765879DC70E.xctestconfiguration",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "UIKitApplication:com.kane.codes.Retryable-ExampleUITests.xctrunner[78a1][rb-legacy]",
"XPC_SIMULATOR_LAUNCHD_NAME": "com.apple.CoreSimulator.SimDevice.2F7BBCEE-1020-4C33-9740-DCB7640911A4",
"__XCODE_BUILT_PRODUCTS_DIR_PATHS": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator",
"__XPC_DYLD_FRAMEWORK_PATH": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator:/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator",
"__XPC_DYLD_LIBRARY_PATH": "/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator:/Users/kanecheshire/Library/Developer/Xcode/DerivedData/Retryable-fezwrtdwmzupungrxeqznlnohxjl/Build/Products/Debug-iphonesimulator"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment