title: macos WKWebView - Debugging not possible anymore after archiving the app
body: <p>I have a macos app that mostly displays a WKWebView into which a webapp is loaded. I need to send a build of this app that has Safari debugging enabled out to other developers. Up until Xcode 10 i could do the following:</p>
  
  <ul>
  <li>Create another scheme</li>
  <li>Set the archive build configuration for that scheme to "Debug"</li>
  <li>Have an entitlements file for debug configurations with the key "com.apple.security.get-task-allow"</li>
  <li>Sign the app with a "Mac Developer" certificate and no provisiong profile</li>
  <li>Archive the app with said scheme</li>
  <li>Send the .app file out, it would still be debuggable in Safari</li>
  </ul>
  
  <p>After upgrading to XCode 11 this does not work anymore. Safari only shows "No Inspectable Applications" and when i examine the app with <code>codesign -d --entitlements :- MyApp.app</code> the key "com.apple.security.get-task-allow" is just missing.</p>
  
  <p>I also tried changing the signing to use a specific provisiong profile with my mac added to it, but that didnt change anything</p>
  
  <p>Is there any way to get this to work again or do I have to change the build process to just not use archive anymore?</p>