Skip to content

bugfix-ci - Fix PR builds from failing for MacOS#930

Merged
RadicalMuffinMan merged 2 commits into
Moonfin-Client:mainfrom
mattsigal:fix/apple-builds-failing
Jul 26, 2026
Merged

bugfix-ci - Fix PR builds from failing for MacOS#930
RadicalMuffinMan merged 2 commits into
Moonfin-Client:mainfrom
mattsigal:fix/apple-builds-failing

Conversation

@mattsigal

@mattsigal mattsigal commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

Fixes macOS build step failures on GitHub Actions PR runs by removing CODE_SIGNING_REQUIRED=NO from the unsigned archive command.

Related Issues

Link related issues or tickets separated by commas.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • UI/UX update
  • Documentation update
  • Build/CI change
  • Other (describe):

Changes Made

List the key changes included in this PR.

  • Modified build-macos.sh to remove CODE_SIGNING_REQUIRED=NO from ARCHIVE_CMD when building unsigned (UNSIGNED=1).
  • Passing CODE_SIGNING_REQUIRED=NO caused CocoaPods' framework script (Pods-Runner-frameworks.sh) to skip ad-hoc signing bundled pod frameworks (Avfilter.framework, etc.).
  • Removing CODE_SIGNING_REQUIRED=NO allows CocoaPods to ad-hoc sign (-) embedded pod frameworks so Xcode's final CodeSign step on Moonfin.app succeeds cleanly.

Platform

  • Android
  • iOS
  • tvOS
  • Web
  • macOS
  • Windows
  • Linux
  • All / Shared code

Testing

Describe how this change was tested.

  • Tested on emulator / simulator
  • Tested on physical device
  • Manual testing completed
  • Not tested (explain why): Needs deployed to GH to confirm fix. Update see screenshot below for passing build :)

Test Steps

  1. Inspected GitHub Actions log for job 89664080093 (run 30152090807).
  2. Traced Command CodeSign failed with a nonzero exit code failure on Avfilter.framework.
  3. Verified CocoaPods framework signing conditions against CODE_SIGNING_REQUIRED.

Screenshots (if applicable)

Include screenshots or recordings for UI changes.

2026-07-25_02-53-54_brave

Checklist

  • Code builds successfully
  • Code follows project style and conventions
  • No unnecessary commented-out code
  • No new warnings introduced

On GitHub Actions PR builds from forks/branches, secrets are not present,
triggering an unsigned build. Passing CODE_SIGNING_REQUIRED=NO to xcodebuild
causes CocoaPods framework scripts to skip ad-hoc signing bundled pod
frameworks (e.g., Avfilter.framework). Xcode's subsequent CodeSign phase
fails with exit code 65 due to unsigned subcomponents. Removing this flag
ensures CocoaPods ad-hoc signs all embedded pod frameworks before app signing.
@RadicalMuffinMan
RadicalMuffinMan merged commit 093fe8c into Moonfin-Client:main Jul 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants