# cmake 3.20 build error when copying iOS frameworks - signing on build machine not supported

**URL:** https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258
**Category:** Usage
**Tags:** os:ios
**Created:** [May 4, 2021, 9:22am UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258 "2021-05-04T09:22:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![buggy](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@buggy](https://discourse.cmake.org/u/buggy)
#### Post date: [May 4, 2021, 9:22am UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/1 "2021-05-04T09:22:16Z")

</div>

Hi everybody,

I run into an error when building an iOS app linking a framework on a machine without Apple dev certificates installed:

`_lib_shared_it_copy_lib.build/Script-827DD60D11E805EA4271AEE0.sh: line 5: unexpected EOF while looking for matching ``'` `Command PhaseScriptExecution failed with a nonzero exit code` `Command exited with the value: 65`

I build both framework and app with these properties set:

XCODE\_ATTRIBUTE\_CODE\_SIGNING\_REQUIRED “NO”  
XCODE\_ATTRIBUTE\_CODE\_SIGNING\_ALLOWED “NO”

From what i understand the script tries to extract the signing certificate from the app and sign the framework with the same certificate before copying. This probably fails because the app isn’t signed.

Do you have an advice on how to fix or circumvent this?

It works with cmake 3.18, but fails with cmake 3.20.

Best,  
Dennis

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 4, 2021, 10:00am UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/2 "2021-05-04T10:00:48Z")

</div>

It looks like CMake 3.20 introduced some new signing logic (the `XCODE_EMBED_FRAMEWORKS` properties). Does 3.19 work (just to verify my suspicions)? There is probably a regression here somewhere though.

Cc: @brad.king

---

<div class="post-metadata">

### Author: ![buggy](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@buggy](https://discourse.cmake.org/u/buggy)
#### Post date: [May 4, 2021, 11:55am UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/3 "2021-05-04T11:55:06Z")

</div>

Thx for your answer. I just tested with a couple of different CMake versions. Results are:  
3.19.8 same error  
3.19.0 same error  
3.18.5 no error

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 4, 2021, 1:33pm UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/4 "2021-05-04T13:33:53Z")

</div>

Thanks, so that means something changed in 3.19, but I don’t see release notes for anything related to signing. I’m also not that familiar with the signing support, so others likely have way better information here.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 4, 2021, 1:35pm UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/5 "2021-05-04T13:35:08Z")

</div>

Could you please file [an issue](https://gitlab.kitware.com/cmake/cmake/-/issues) with details on what the behavior change is. If you could make a small testcase that reproduces the problem so that any fix could be tested against it, that would be extremely appreciated.

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [May 4, 2021, 2:21pm UTC](https://discourse.cmake.org/t/cmake-3-20-build-error-when-copying-ios-frameworks-signing-on-build-machine-not-supported/3258/6 "2021-05-04T14:21:41Z")

</div>

CMake 3.19 switched to the Xcode “new build system” for Xcode 12 and above.

Please post details to the issue.
