Advertisement
SarahNorthway

Mac Notarizing Instructions

Sep 26th, 2019
3,153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. =====================================================================================================
  2. === NOTE something in this process is flawed. The resulting file crashes on 10.15 with this error ===
  3. === Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) ===
  4. === Termination Reason: Namespace CODESIGNING, Code 0x2 ===
  5. =====================================================================================================
  6.  
  7. Connect mac to 2nd monitor and synergy for keyboard/mouse and boot mac
  8.  
  9. Update MacOS to 10.13.6+
  10.  
  11. Update xcode to 10.0+
  12. Couldn't do it through the app store
  13. only 11 was available and too high for my MacOS (10.13.6), update failed silently
  14. Downloaded 10.0 directly from https://developer.apple.com/download/more/
  15. Delete and replace /Applications/Xcode.app
  16. In console ran this for good measure in case there are 2 copies floating around:
  17. sudo xcode-select -s /Applications/Xcode.app
  18.  
  19. Verify that gamename.app runs and contains 64 bit version
  20.  
  21. In Xcode
  22. Check xcode > preferences > accounts, make sure you're logged in (might skip this step?)
  23.  
  24. In Keychain Access.app
  25. select the login keychain on the left
  26. Keychain Access > Certificate assistant > Request a certificate from a certificate authority
  27. Save to disk creates CertificateSigningRequest.certSigningRequest
  28.  
  29. Upload to developer.apple.com
  30. Also need to make an account and pay $100
  31. under Account, Certificates, Create new > Developer ID Application
  32. then download developerID_application.cer
  33.  
  34. In Keychain Access.app
  35. File > Import Items
  36. choose developerID_application.cer
  37.  
  38. Login to https://appleid.apple.com/account/manage
  39. In the Security section, click Generate Password below App-Specific Passwords
  40. Remember app specific name and password
  41.  
  42. In Keychain Access.app
  43. File > New Password Item
  44. Keychain Item Name: app specific name
  45. Account Name: your apple ID (email address)
  46. Password: app specific password
  47.  
  48. Install and run SD Notary from https://latenightsw.com/sd-notary-notarizing-made-easy/
  49. Select signing identity (registered to keychain via developerID_application.cer)
  50. Enter Apple ID (email address)
  51. Enter app specific name (from appleid.apple.com/account/manage, matches pw in keychain)
  52. Leave team ID blank unless you have multiple teams
  53.  
  54. In SD Notary, sign then submit (I got unknown altool error when doing both at once)
  55. Uncheck "process script applets only"
  56. Uncheck "don't sign enclosures"
  57. Press Sign Only...
  58. choose your gamename.app file (NOT your only copy! it will be moved!)
  59. enter your keychain (local machine) password a couple times
  60. will create a new folder called "gamename - signed" containing gamename.app
  61. and will move original file
  62. confirm no errors
  63. verify that signed app still runs
  64. Press Submit App...
  65. select signed version at "gamename - signed"/gamename.app
  66. wait...
  67. wait...
  68. wait...
  69. Then after 3 minutes, "the submission has been notarized and will now be stapled".
  70. Then a popup warned me that the spctl results say "source=Developer ID" while the app was expecting "source=Notarized Developer".
  71. But I got an email from apple saying my app had been notarized, so thumbs up.
  72. The submitted app was moved to
  73. "gamename - signed"/"gamename - failed"/gamename.app
  74. THIS is the file I submitted to steam
  75.  
  76. In partner.steamgames.com under App > Steamworks > Application
  77. Check maxOS 64 bit binaries and app bundles are notarized
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement