Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Error Submitting to Mac App Store

Discussion in 'Unity Cloud Build' started by AlexNanomonx, Aug 11, 2020.

  1. AlexNanomonx

    AlexNanomonx

    Joined:
    Jan 4, 2017
    Posts:
    35
    I'm not sure if this is the right forum for this, but I figured since Cloud Build is introducing some uncertainty into my process, I'd put it here.

    Here's my process for my macOS game:
    1. I build and notarize my app through Unity Cloud Build (using my Developer ID Application certificate)
    2. Download the .app file
    3. Build/sign the .pkg file (using productbuild --component APP_NAME.app /Applications --sign '3rd Party Mac Developer Installer: Company Inc. (XXXXXXXXX)' APP_NAME.pkg)
    4. Submit to Mac App Store via Transporter
    5. Apple sends me this great big long error email, with the headline error of "Invalid Signature."
    I'm concerned because I know you sign the code before notarization and apple seems to be having problem with some internal unity .dylibs. So if anyone has any insight on how the notarization process is actually going in cloud build, that'd be useful.

    I've also asked this question (worded somewhat differently) on the apple forums, in case I forget to update this and I figure it out over there.
     
  2. AlexNanomonx

    AlexNanomonx

    Joined:
    Jan 4, 2017
    Posts:
    35
    This was not related to unity cloud build except as far as UCB was doing the notarization. However I'll put what I learnt as hopefully this will be helpful if you google that error code.

    Basically I was getting confused between the various type of Apple provided certificates:
    • Developer ID Application: Company Name (xxxxxxxxxx) - Can sign code, used for Notarization + distribution outside the AppStore
      • Used in conjunction with Apple's
        codesign
        tool
      • And what you use to set up notarization in UnityCloudBuild
    • 3rd Party Mac Developer Application: Company Name (xxxxxxxxxx) - Can sign code, used for AppStore submission
      • Used in conjunction with Apple's
        codesign
        tool
    • 3rd Party Installer Application: Company Name (xxxxxxxxxx) - Can sign .pkg files, used for AppStore
      • Used in conjunction with Apple's
        productbuild
        tool
    You need to make sure you're signing each step with the correct type of certificate, if you don't apple will just say "Invalid Signature", which is vague, but maybe this help

    This how-to was really useful for clearing up where I was getting confused. https://developer.apple.com/forums/thread/128166
     
unityunity