I am trying to install my LaunchAgent (which is bundled as .app in .pkg file) with:
sudo installer -pkg ./XXX.pkg -target /
And I see following error:
2025-07-29 19:06:29-05 MacBook-Pro installd[764]: PackageKit: Skipping component "com.XXX.Agent" (1.0.0-1.0.0-*) because the version 1.0.0-21.0.0-* is already installed at /Users/user/Downloads/Xcode Cloud Artifacts/XXX-C0E61B13-3F49-42DF-81B3-1037BC34D11B/b1ac6a32-3236-417e-bd62-88de90fa700d/789d0aa2-5531-403c-bcab-e3de8d6b34ee/myAgent.app.
After installer command returns, I don't see any files from my .app bundle extracted on filesystem.
If I understand the error message properly, then installer checks if ANYWHERE on filesystem there already exists this app bundle. And if it exists, then do not extract another copy of bundle.
But why? And do I need to specify version in xcodebuild command?
Topic:
App Store Distribution & Marketing
SubTopic:
General