Skip to content

cmake-rn: honor CODE_SIGNING_ALLOWED for framework targets - #473

Merged
kraenhansen merged 2 commits into
mainfrom
fix/cmake-rn-framework-code-signing
Oct 11, 2026
Merged

kraenhansen merged 2 commits into
mainfrom
fix/cmake-rn-framework-code-signing

Conversation

@kraenhansen

Copy link
Copy Markdown
Collaborator

#430 made CODE_SIGNING_ALLOWED configurable, but only passed it to the cmake --build used for plain dynamic libraries. CMake FRAMEWORK TRUE targets (which is what gyp-to-cmake emits) are built through xcodebuild archive/install, which kept signing — so every framework in the examples' xcframeworks had a _CodeSignature directory. Found while making verify-prebuilds run against real build output in #426.

Test plan

  • pnpm run build, lint, prettier:check, cmake-rn tests
  • Rebuilt the node-addon-examples with CMAKE_RN_TRIPLETS="arm64;x86_64-apple-ios-sim": no _CodeSignature left in any framework (was present in all before)
  • CI

🤖 Generated with Claude Code

#430 only passed CODE_SIGNING_ALLOWED to the `cmake --build` used for plain
dynamic libraries; the `xcodebuild archive`/`install` calls for CMake
FRAMEWORK targets kept signing, leaving a _CodeSignature directory in each.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kraenhansen kraenhansen added the Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) label Oct 11, 2026
@kraenhansen kraenhansen reopened this Oct 11, 2026
@kraenhansen kraenhansen self-assigned this Oct 11, 2026
@kraenhansen kraenhansen added the bug Something isn't working label Oct 11, 2026
@kraenhansen
kraenhansen marked this pull request as ready for review October 11, 2026 21:36
@kraenhansen
kraenhansen merged commit 4376787 into main Oct 11, 2026
@kraenhansen
kraenhansen deleted the fix/cmake-rn-framework-code-signing branch October 11, 2026 21:55
@kraenhansen

Copy link
Copy Markdown
Collaborator Author

Merged this without green CI (YOLO) as I'm shutting down now and want to rebase #426 on this before I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant