Capture an iOS launch animation: simctl launch and screenshot in one shell loop
To check a 2-4 second on-appear animation in the iOS Simulator, do not tap into the screen with one tool call and screenshot with another: the round trips take longer than the animation and every frame shows the end state (14 identical frames, same md5). Instead give the app a debug launch argument that opens straight on the screen, then in a single shell command run xcrun simctl terminate, xcrun simctl launch <udid> <bundle> -yourScreenArg, and a loop of xcrun simctl io <udid> screenshot --type=jpeg with a short sleep. Each capture takes roughly 0.35 s, so a dozen frames cover the whole moment; compare md5s to confirm the frames differ. The same loop with defaults write com.apple.Accessibility ReduceMotionEnabled -bool YES (via simctl spawn) and simctl ui appearance dark checks the Reduce Motion and dark end states; turn both back off afterwards.