# XCODE\_EMBED\_FRAMEWORKS\_CODE\_SIGN\_ON\_COPY issue

**URL:** https://discourse.cmake.org/t/xcode-embed-frameworks-code-sign-on-copy-issue/13214
**Category:** Usage
**Created:** [December 17, 2024, 4:35pm UTC](https://discourse.cmake.org/t/xcode-embed-frameworks-code-sign-on-copy-issue/13214 "2024-12-17T16:35:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![etjernlund](https://discourse.cmake.org/user_avatar/discourse.cmake.org/etjernlund/32/4431_2.png) [@etjernlund](https://discourse.cmake.org/u/etjernlund)
#### Post date: [December 17, 2024, 4:35pm UTC](https://discourse.cmake.org/t/xcode-embed-frameworks-code-sign-on-copy-issue/13214/1 "2024-12-17T16:35:03Z")

</div>

I have two iOS apps, both depending on the same framework.

```auto
set_target_properties(FooApp PROPERTIES 
  XCODE_EMBED_FRAMEWORKS MyFramework
  XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON)

set_target_properties(BarApp PROPERTIES 
  XCODE_EMBED_FRAMEWORKS MyFramework
  XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON)

```

The result is **only one of them** has `Embed & Sign` set when I check the generated project in Xcode.

I have noticed there’s a very recent commit ([0282429c](https://gitlab.kitware.com/cmake/cmake/-/commit/0282429c5a11e3e8807af866c3983252ebe13b82)) that seems to be very closely related to my issue.

I have tested with CMake built from master and it does _something_, but not what I expect. It gives the same result as before if I embed the framework by giving it as a target … but it gives the correct result if I use the path to the framework.

Suggestions?

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [December 17, 2024, 8:57pm UTC](https://discourse.cmake.org/t/xcode-embed-frameworks-code-sign-on-copy-issue/13214/2 "2024-12-17T20:57:05Z")

</div>

Could you please [open a new issue](https://gitlab.kitware.com/cmake/cmake/-/issues/new) in the issue tracker for this? It sounds like [the change](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9985) that went in a week ago might not be a complete fix.

---

<div class="post-metadata">

### Author: ![etjernlund](https://discourse.cmake.org/user_avatar/discourse.cmake.org/etjernlund/32/4431_2.png) [@etjernlund](https://discourse.cmake.org/u/etjernlund)
#### Post date: [December 18, 2024, 8:40am UTC](https://discourse.cmake.org/t/xcode-embed-frameworks-code-sign-on-copy-issue/13214/3 "2024-12-18T08:40:12Z")

</div>

Sure. Done: [https://gitlab.kitware.com/cmake/cmake/-/issues/26541](https://gitlab.kitware.com/cmake/cmake/-/issues/26541)
