How to clear macOS app bundle cache
How to clear macOS app bundle cache
- Subject: How to clear macOS app bundle cache
- From: Andreas Falkenhahn <email@hidden>
- Date: Mon, 03 Sep 2018 15:31:37 +0200
Not really Cocoa-related but maybe somebody on here knows how to solve this:
I build my application on a Mac Mini system using makefiles on a network drive
(SMB). I don't use Xcode. Now I want to run the application from the network
drive on a different machine, an iMac.
However, the iMac seems to load the application from the network drive only
once. After that, it seems to use a cached copy because changes I make after
first running the app on the iMac don't come into effect before I reboot the
iMac.
I have found out that I can force the iMac to use the latest version of my
build by copying the executable to the app bundle again (although it is already
there) like so:
$ cp test test.app/Contents/MacOS
This has to be done on the iMac, though. Doing it on the Mac Mini used for
building doesn't flush the app cache on the iMac. But by doing it on the iMac
the problem is solved. Still, I'm wondering if there is a better way to "flush"
the app bundle cache on the iMac.
Optimally, I'm looking for a solution to flush the app bundle cache on the iMac
from the makefile that I run on the Mac Mini I use for building.
Both Macs run the latest macOS, 10.13.6.
--
Best regards,
Andreas Falkenhahn mailto:email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden