title: macOS app built with Unity hangs upon launch after signing with codesign command in Terminal
body: <p>I am trying to submit a macOS app built with Unity to the Mac App Store. I followed the instructions mentioned in the Unity documentation, <a href="https://docs.unity3d.com/Manual/HOWTO-PortToAppleMacStore.html" rel="nofollow noreferrer">Delivering your application to the Mac App Store</a>.</p>
  
  <p>I am able to run the Build command for macOS and get a .app bundle for my app. I am also able to launch it and it runs fine. However, after running the following <code>codesign</code> command (as mentioned in the linked document above), the app freezes upon launch and has to be force quitted. This is the <code>codesign</code> command line that I am running:</p>
  
  <pre><code>codesign -o runtime -f --deep -s '3rd Party Mac Developer Application: DEVELOPER NAME' --entitlements "GAMENAME.entitlements" "/AppPath/GAMENAME.app"
  </code></pre>
  
  <p>I have a paid (Individual) developer license with Apple, and have properly set up the certificates in keychain as mentioned in the document. I also managed to check that the app bundle was signed by running the command line:</p>
  
  <pre><code>codesign -dv --verbose=4 GAMENAME.app
  </code></pre>
  
  <p>Running the above command displays that it's signed with my 3rd Party Mac App Developer certificate.</p>
  
  <p>I have tried looking for a way to <em>export</em> the Xcode project out from Unity app, so I can attempt to build and sign it with Xcode, but after searching the Web, I realized that Unity doesn't have support for exporting the Xcode project for macOS app yet (it can do the same for iOS).</p>
  
  <p>I am running the current latest version of all the software, and the same are mentioned below:</p>
  
  <ol>
  <li><p>macOS Catalina 10.15.1</p></li>
  <li><p>Xcode 11.2.1</p></li>
  <li><p>Unity 2019.2.13</p></li>
  </ol>
  
  <p>My questions are:</p>
  
  <ul>
  <li><p>What is it that may be going wrong?</p></li>
  <li><p>What other avenues do I have?</p></li>
  </ul>
  
  <p>I am looking for distributing the app <em>exclusively</em> via the Mac App Store for the time being. This is going to be a paid app (if that's relevant).</p>