cefclient.app: code object is not signed at all

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cefclient.app: code object is not signed at all

Postby kyr0 » Wed Aug 29, 2018 7:15 am

Hi all,

I just wanted to inform you about a code signing issue with Xcode on OS X and it's solution.
Trying to activate code signing for "cefclient" with the default Xcode project exactly generated by cmake like explained in CMakeLists.txt: "cmake -G "Xcode" -DPROJECT_ARCH="x86_64" ..":

Bildschirmfoto 2018-08-29 um 14.01.53.png
Bildschirmfoto 2018-08-29 um 14.01.53.png (60.22 KiB) Viewed 4002 times


Results in:

> [...] cefclient.app: replacing existing signature
> [...] cefclient.app: code object is not signed at all
> [...] In subcomponent: [...]cefclient Helper.app

ERROR: Command /usr/bin/codesign failed with exit code 1

To resolve this issue, you have to dig into codesign for hours... until you find a very obvious config option, you have to set </sarcasm>:

Bildschirmfoto 2018-08-29 um 14.01.40.png
Bildschirmfoto 2018-08-29 um 14.01.40.png (84.44 KiB) Viewed 4002 times


Doing so will make the codesign work.

To improve the developer experience: Could we please...

A) Document this in CMakeLists.txt or any other obvious place and/or
B) Include the flag in the project file generated by default? (best option in my eyes)

That would be awesome :)

Anyway, this is a great project. Thank you!!

Thanks and best,
Aron
kyr0
Newbie
 
Posts: 7
Joined: Wed Aug 29, 2018 7:03 am

Re: cefclient.app: code object is not signed at all

Postby magreenblatt » Wed Aug 29, 2018 11:26 am

Somewhere there should be a "Build Settings" tab for your target. Try adding the "--deep" flag to the existing "Other Code Signing Flags" configuration.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient.app: code object is not signed at all

Postby michaeladamkatz » Sun Aug 29, 2021 12:28 am

Aron, thank you very much for documenting this.
michaeladamkatz
Mentor
 
Posts: 50
Joined: Wed Jan 09, 2013 5:10 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 67 guests

cron