No SDK cache entry for extension! - Crash when expanding Mac

I am writing my own finder extension. The extension works in most cases, but sometimes it decides not to work on some of our machines.

I have still not been able to determine why this is happening. The only thing I got is a crashreport entry:

No SDK cache entry for extension!

After googling I found that this problem sometimes occurs on mac, and the solution is:

sudo /usr/libexec/xpchelper --rebuild-cache

      

But I would like to understand why this is happening, so maybe someone has a deeper understanding of what this means and what I might be doing wrong that is causing this crash.

The only thing I suspect is that our application uninstalls and installs this extension quite often, but so far I could not verify if this is the reason

+3


source to share


1 answer


Problem installing OS X. The easiest, but not the fastest, way to fix this is to reinstall the OS. If you're not in a hurry or don't have limited network access, that's what I suggest, especially since I don't know if there are any other installation issues. Back up all data before reinstalling. You don't need a backup if things don't work out. The advanced shortcut below, if it works, could save you some downtime (and 5GB download cost, if applicable).

  • Back up all data.

  • Disconnect all external storage devices.

  • Start in recovery mode. Select a language if prompted. The OS X Utilities screen appears. One option is to install OS X. That's not what you are going to do.

  • This step is only necessary if you are using FileVault 2. If you donโ€™t know what FileVault is, you donโ€™t use it. Proceed to the next step. If not, launch Disk Utility, then select the FileVault volume icon ("Macintosh HD" unless you give it a different name.) It will be nested below the other disk icon. Click the Unblock button on the toolbar and enter your login password when prompted. Then close the Disk Utility to return to the main screen.

  • Select Get Help Online. The safari will start. In recovery mode, you won't have access to your bookmarks, but you won't need them. Download this web page.

  • Triple-click anywhere on the line below to select it: chflags norestricted / V * // S / * / Caches Copy the selected text to the clipboard by pressing the -C key combination.

  • Quit Safari. From the menu bar, choose Utilities โ–น Terminal The terminal application starts. Paste into a terminal window by pressing the key combination -V. Wait until there is a new line ending with a hash character (#). Exit the terminal, which will be returned to the main screen.

  • Select ๏ฃฟ โ–น Restart from the menu bar.

  • This step should be done after a restart and while logged in as an administrator, not in recovery mode. If you only have one user account, you are the administrator. Select and copy this line as in step 6: sudo / usr / libexec / xpchelper --rebuild-cache Paste into a terminal window as before. You will be prompted for your login password. Nothing will be displayed as you type. Type carefully and then hit return. If you don't have a login password, you need to set it before you can run the command. You may receive a one-time warning to be careful. Confirm. You don't need to post a warning. If you see a message that your username is "missing in the sudoers file", you are not logged in as an administrator.Log in as one and start over. Wait for a new line ending with a dollar sign ($) to appear below what you entered.

  • Do as in step 9 with this line: sudo / usr / libexec / * / app_sandbox_cache_builder --rebuild-cache Then you can exit the terminal.



https://discussions.apple.com/thread/7388214?start=0&tstart=0

+1


source







All Articles