diff --git a/.changeset/framework-code-signing.md b/.changeset/framework-code-signing.md new file mode 100644 index 00000000..4444d2d8 --- /dev/null +++ b/.changeset/framework-code-signing.md @@ -0,0 +1,8 @@ +--- +"cmake-rn": patch +--- + +Apply `--code-signing-allowed` to CMake framework targets too. It was only +passed when building plain dynamic libraries, so framework targets built +through `xcodebuild archive`/`install` were always signed, leaving a +`_CodeSignature` directory in each framework. diff --git a/packages/cmake-rn/src/platforms/apple.ts b/packages/cmake-rn/src/platforms/apple.ts index 2811bcbb..82740793 100644 --- a/packages/cmake-rn/src/platforms/apple.ts +++ b/packages/cmake-rn/src/platforms/apple.ts @@ -424,6 +424,7 @@ export const platform: Platform = { configuration, "-destination", DESTINATION_BY_TRIPLET[triplet], + `CODE_SIGNING_ALLOWED=${codeSigningAllowed ? "YES" : "NO"}`, ], buildPath, );