Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Today Widget on OS X not working

I can't seem to get my Today widget (or any extension for that matter) running in the Widget Simulator. The simulator launches and says "Couldn't Open Widget" along with

Failed to find Widget /Users/SomeUser/Library/Developer/Xcode/DerivedData/Build/Products/Debug/MyApp.app/Contents/PlugIns/MyApp.appex

I looked in Console app and I see this as well:

pkd[299]: ignoring mis-configured plug-in at /Users/SomeUser/Library/Developer/Xcode/DerivedData/Build/Products/Debug/MyApp.app/Contents/PlugIns/MyApp.appex: plug-ins must be sandboxed

But it is sandboxed in xcode! It's codesigned, sandboxed and the lot. Even if I try and deploy it on a new machine (registered as a developer machine with my developer provisioning profile), the widgets don't even show up in System Preferences.

Any idea what I need to do?

like image 857
strangetimes Avatar asked Sep 16 '15 16:09

strangetimes


People also ask

Why are my widgets not working on Mac?

Sometimes, a widget can stop working correctly due to an app-related issue. Removing and reinstalling the app might help. To do that, open the Applications folder on your Mac and drag the app to the Trash. Then, reinstall the app via the App Store or download the latest version via the developer's website.

How do you get the Today view on a Mac?

Did you know that, just like on iOS, macOS has a Today screen? You can access it by clicking on the list icon in the top right of your menu bar and selecting the Today tab. You can add a variety of widgets here — both directly from Apple and other third-party apps.

How do I enable widgets on Mac?

On your Mac, open Notification Center. At the bottom of Notification Center, click Edit Widgets. In the list of widget categories, search for a widget or click a category, such as Clock, to preview available widgets. Some widgets come in different sizes; click a size to preview the information it shows.


1 Answers

Okay finally found the problem. I was codesigning my app by hand (which had never been a problem before) since I had an intricate set of frameworks the app relied upon, and needed to hand copy them using a Copy / Runscript post-build script. Any way, it seems starting Xcode 7 at least, this no longer works as expected. The app works and codesign says the app has been signed correctly, but clearly something is happening behind the scenes that's breaking the codesignature. I ended up removing all my manual codesigning stuff and simply using Xcode's 'Copy Framework' post build step and checked 'Sign on Copy'. It's now finally working as expected.

like image 158
strangetimes Avatar answered Sep 21 '22 06:09

strangetimes