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 yourkSharedGroupIdentifier
- 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
Default Argument Not Permitted in a Tuple Type When Defining Function Type
Nsurl Found Nil While Unwraping an Optional Value
How to Cast Any to an Optional
Format Realtime Stopwatch Timer to the Hundredth Using Swift
Function Throws and Returns Optional.. Possible to Conditionally Unwrap in One Line
Transform a Swift Sequence in to Adjacent Pairs
Expandable Sections Uitableview Indexpath Swift
How to Create an Array of Functions
Make Int Round Off to Nearest Value
Change Uibarbuttonitem from Uisearchbar
Distinction Between Private and Fileprivate Top-Level Classes
Multiple Bottom Sheets - the Content Doesn't Load Swiftui
Create Codable Struct with Generic Type
How to Validate Dynamically Added Textfields on a Button Click in Swiftui
How to Use Keywords as Parameter Names in Swift
In Swift, How to Get Memory Back to Normal After an Skscene Is Removed