<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Specifiying CN of Apple Signing Cert when using CMake]]></title><description><![CDATA[<p dir="auto">My Apple Developer ID certificate has:<br />
CN=Developer ID Application: David Partridge (VH8AYT3C7Y)<br />
If the CMakeLists for my Qt project reads like this:</p>
<pre><code>if(NOT LINUX)
    set (deploy_tool_options_arg "")
    if(APPLE)
        set(deploy_tool_options_arg "${deploy_tool_options_arg} -hardened-runtime -no-strip")
        set(deploy_tool_options_arg "${deploy_tool_options_arg} -codesign=Developer ID Application: David Partridge (VH8AYT3C7Y)")
    endif()
</code></pre>
<p dir="auto">Then it runs macdeployqt like this:</p>
<pre><code>'/opt/Qt/6.8.2/macos/bin/macdeployqt' '/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app' '-appstore-compliant' '-always-overwrite' '-hardened-runtime' '-no-strip'
'-codesign=Developer' 'ID' 'Application:' 'David' 'Partridge' '(' 'VH8AYT3C7Y' ')'
</code></pre>
<p dir="auto">which isn't correct :(</p>
<p dir="auto">If I write <code>-codesign=\"Developer ID Application: David Partridge (VH8AYT3C7Y)\""</code></p>
<p dir="auto">Then when I report what deploy_tool_options_arg is I see:</p>
<pre><code>1&gt; [CMake] deploy tools options arg: -verbose=3 -hardened-runtime -no-strip -codesign="Developer ID Application: David Partridge (VH8AYT3C7Y)"
</code></pre>
<p dir="auto">But I when I run the Install I get (split across multiple lines for readability:</p>
<pre><code>-- Running Qt deploy tool for /Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app
  in working directory '/Users/amonra/.vs/DSS/Darwin/arm64/Debug'
'/opt/Qt/6.8.2/macos/bin/macdeployqt' '/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app'
'-appstore-compliant' '-always-overwrite' '-verbose=3' '-hardened-runtime' '-no-strip'
'-codesign=' 'Developer ID Application: David Partridge (VH8AYT3C7Y)'
</code></pre>
<p dir="auto">Which is incorrect and codesign tells me correctly:</p>
<pre><code>ERROR: Codesign signing error:
ERROR: ": no identity found\n"
</code></pre>
<p dir="auto">So what is the correct way to do this please?</p>
]]></description><link>https://forum.qt.io/topic/161896/specifiying-cn-of-apple-signing-cert-when-using-cmake</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 01:43:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/161896.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Apr 2025 08:42:50 GMT</pubDate><ttl>60</ttl></channel></rss>