Search code examples
ioswidgetios8xcode6ios-app-extension

Today View Extension (Widget) not working


I found several other threads with similar problems, but no one has exactly the same problems.

Besides it DID work some time! the errors now keep occurring while it was working some time before..

When Running my app, that has a build Target "Today View Extension", I get no actual result.

The Extension is shown in Notification Center, but has no body (Simulator AND device).

No body

Also when I try to run the App (not the target extension) and attach the process manually by PID I get this error:

Error on "Attach to Process" (Debug)

I also had the error that my Extension (that has a "Bundle Display Name" entry in Info.plist for a custom Name) did show the Name of the Extension-containing App, and not the string that was set in the Info.plist

Strange thing is that sometimes it worked, sometimes it doesn't, but when it does not there were like five different reasons why not.

I want to ask people who have similar/same problems to post them here to collect all the issues appearing and possibly collect workarounds / solutions for these problems.

Thank you.


Solution

  • For anyone having troubles now:

    With beta 4 and beta SDK 4 a lot of bugs were fixed:

     [self setPrefferedContentSize:]
    

    to set the views size is now working properly (if you have troubles viewing your Extension) If your updated Extension is not showing in Notification Center be sure to have a look at the log output, there you can see what task the debugger is attached to, if there is "no Selection" try stopping and running again, it will work after some tries!

    If you have questions feel free to ask,

    Happy coding