Today Extension Failed to Inherit Coremedia Permissions From

Xcode Today Extension stuck on Failed to inherit CoreMedia permissions error

I get the same error but still my share extension works (and was approved by Apple). So maybe the error is somewhere else.

Unable to load Today Extension with table view

From your stack trace, it looks like you're trying to display a UIAlertController:

frame #6: 0x0000000186143b24 UIKit`+[UIAlertController alertControllerWithTitle:message:preferredStyle:] + 100
frame #7: 0x0000000100133518 TodayExtension_Dev`__20+[a5987398 a2489290]_block_invoke + 64

UIAlertController is presented modally over the entire screen, and your widget does not have access to the entire screen, so they are not allowed in Today Widgets.

I think you need to get to the bottom of why an alert is showing. Perhaps a side effect of your SOAP client?

iOS 10 Today extension can't read shared user defaults any more

It sounds like the issues is that your Entitlements file is missing the relevant line.

To diagnose where the issue is, start with your build settings:

  • Under Code Signing Entitlements there should be a file listed
  • Open that file and ensure that it has the App Groups key with the value that matches your kSharedGroupIdentifier
  • Ensure that the file is not marked read-only (this would potentially cause the "fix" to not work correctly)
  • Verify that all of the following match:

    • kSharedGroupIdentifier in both apps
    • kSharedGroupIdentifier and the value in your entitlements file for App Groups

Next, we can narrow the issue down to the specific key or the entire preferences domain as follows:

NSUserDefaults *sharedPrefs  = [[NSUserDefaults alloc] initWithSuiteName:kSharedGroupIdentifier];
if (sharedPrefs == nil) {
NSLog(@"Error loading shared user defaults!");
}

A nil value indicates that the suite name is invalid.



Related Topics



Leave a reply



Submit