I think intermittently is a misnomer. It is sysem-dependent and consistently happening, just not on any of the systems in our control. To give additional context, we can see it existed in our postinstall check, but then at the end it says it can't find the file instead of "PackageKit: Registered bundle ..." but we can't find a message explaining why it is being removed.
2024-10-02 09:43:06-04 MBA-L-8114 package_script_service[9897]: ./postinstall: App Name: /Applications/.hiddenfolder/app1.app found.
...
2024-10-02 09:43:06-04 MBA-L-8114 package_script_service[9897]: PackageKit: Hosted team responsible for script has been cleared.
2024-10-02 09:43:06-04 MBA-L-8114 package_script_service[9897]: Responsibility set back to self.
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Writing receipt for com.company.pkg.app1 to /
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Touched bundle /Applications/HelperApp.app
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Touched bundle /Applications/.hiddenfolder/app1.app
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Touched bundle /Library/Company/HelperApp2.app
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: Installed "App Name" ()
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: Successfully wrote install history to /Library/Receipts/InstallHistory.plist
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: releasing backupd
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: allow user idle system sleep
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: ----- End install -----
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: 2.2s elapsed install time
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Cleared responsibility for install from 9894.
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Hosted team responsible for install has been cleared.
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Running idle tasks
2024-10-02 09:43:06-04 MBA-L-8114 installd[3215]: PackageKit: Done with sandbox removals
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: PackageKit: Registered bundle file:///Applications/HelperApp.app/ for uid 0
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Error getting application status info for file:///Applications/.hiddenfolder/app1.app: Error Domain=NSCocoaErrorDomain Code=260 "The file “app1.app” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Applications/.hiddenfolder/app1.app, NSFilePath=/Applications/.hiddenfolder/app1.app, NSUnderlyingError=0x6000026a0d50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: PackageKit: Registered bundle file:///Library/Company/HelperApp2.app/ for uid 0
2024-10-02 09:43:07-04 MBA-L-8114 installd[3215]: PackageKit: Removing client PKInstallDaemonClient pid=9894, uid=0 (/usr/sbin/installer)
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Running install actions
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Removing temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.98948eFhHX"
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Finalize disk "MacOS"
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Notifying system of updated components
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]:
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: **** Summary Information ****
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: Operation Elapsed time
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: -----------------------------
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: disk 0.01 seconds
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: script 0.00 seconds
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: zero 0.00 seconds
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: install 3.56 seconds
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]: -total- 3.57 seconds
2024-10-02 09:43:07-04 MBA-L-8114 installer[9894]:
Topic:
App & System Services
SubTopic:
Core OS