Skip to content

Auto-grant iOS notification permission in screenshots workflow#11

Merged
c0d3rb4b4 merged 1 commit into
mainfrom
codex/fix-ios-screenshot-pipeline-popup-issue
Feb 24, 2026
Merged

Auto-grant iOS notification permission in screenshots workflow#11
c0d3rb4b4 merged 1 commit into
mainfrom
codex/fix-ios-screenshot-pipeline-popup-issue

Conversation

@c0d3rb4b4
Copy link
Copy Markdown
Owner

Motivation

  • Prevent the iOS system alert ("Eclipse Timer" would like to send you notifications) from appearing in simulator screenshots and polluting the captured artifacts.
  • Make the screenshot pipeline resilient across runtimes that may require the app to be launched before simulator privacy changes persist.

Description

  • Added an ensure_notification_permission helper in .github/workflows/ios-simulator-screenshots.yml that checks and grants notification permission via xcrun simctl privacy for the app bundle.
  • Calls ensure_notification_permission before the first launch and again after launch to handle runtimes that only persist permission after an initial open.
  • Changes are safe-failed with || true so older runtimes without simctl privacy support will not break the workflow.

Testing

  • Validated the workflow YAML by running ruby -e "require 'yaml'; YAML.load_file('.github/workflows/ios-simulator-screenshots.yml')", which returned ok.
  • Committed the updated workflow file successfully (git commit completed without error).

Codex Task

@c0d3rb4b4 c0d3rb4b4 merged commit 952f310 into main Feb 24, 2026
1 check passed
@c0d3rb4b4 c0d3rb4b4 deleted the codex/fix-ios-screenshot-pipeline-popup-issue branch February 26, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant