skip to Main Content

I am building a CLI tool on macOS (without an info.plist, not sure if this is relevant). I am reading the docs regarding notarizing before distribution, and it says this "Distribute content" UI should show 2 options: Upload and Export. I don’t have those, I have Built Products and Archive.

Does anyone know what affects the method of distribution shown here?

Under signing and capabilities, I have selected "Developer ID Application".

enter image description here

3

Answers


  1. Chosen as BEST ANSWER

    This happens because my CLI tool is not an app in Xcode's eyes. That's what you get for being a CLI tool... Effectively, this means distribution is harder, and you've got to use other tools (e.g. xcodebuild CLI, pkgbuild, xcrun altool)

    macOS app distribution methods:

    enter image description here

    iOS app distribution methods:

    enter image description here


  2. Please try this got to Build Settings -> Deployment. Now if the Skip Install is ‘Yes’ set to ‘No’. Then try again to archive. Hope this helps.enter image description here

    Login or Signup to reply.
  3. If anyone facing the same problem even after setting "Skip Install" to NO. Please verify the Info.plist xml file and make sure its well formed. Some code editors like VSCode format the XML to more readable format and apple Xcode is not friendly with other formatting styles(including tabs spaces creates problem!!).

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search