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".
3
Answers
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:
iOS app distribution methods:
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.
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!!).