This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @objc(PSTArchitecture) class Architecture: NSObject { | |
| /// Check if process runs under Rosetta 2. | |
| /// | |
| /// Use to disable tests that use WebKit when running on Apple Silicon | |
| /// FB8920323: Crash in WebKit memory allocator on Apple Silicon when iOS below 14 | |
| /// Crash is in JavaScriptCore: bmalloc::HeapConstants::HeapConstants(std::__1::lock_guard<bmalloc::Mutex> const&) | |
| @objc class var isRosettaEmulated: Bool { | |
| // Issue is specific to Simulator, not real devices | |
| #if targetEnvironment(simulator) | |
| return processIsTranslated() == EMULATED_EXECUTION |
OlderNewer