Hallo,
ich habe auf XCode Version 11.3.1 updated und bekomme nun diese Assertion:
*** Assertion failure in -[SHKSharingService launchExtensionWithExtensionItem:options:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ShareKit/ShareKit-641.5/ShareKit/framework/SHKSharingService.m:2943
wenn der folgende Code ausgeführt wird.
Auch ein Try..catch Bloch und die Zeile "[self.emailService performWithItems:..:]" fängt diese Assertion nicht.
Warum bekomme ich die Assertion?
Danke im voraus für Tips.
ich habe auf XCode Version 11.3.1 updated und bekomme nun diese Assertion:
*** Assertion failure in -[SHKSharingService launchExtensionWithExtensionItem:options:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ShareKit/ShareKit-641.5/ShareKit/framework/SHKSharingService.m:2943
wenn der folgende Code ausgeführt wird.
Quellcode
- @property (strong, nonatomic) NSSharingService * emailService;
- ....
- NSArray * mails = ...;
- for (NSMutableDictionary * properties in mails) {
- // USLog(@"email info: %@", properties);
- self.emailService.recipients = [properties valueForKey:@"headOfTeam"]; // array of email-adresses
- self.emailService.subject = [properties valueForKey:@"subject"];
- [self.emailService performWithItems:@[[properties valueForKey:@"content"]]];
- }
Auch ein Try..catch Bloch und die Zeile "[self.emailService performWithItems:..:]" fängt diese Assertion nicht.
Warum bekomme ich die Assertion?
Danke im voraus für Tips.
Wenn Du immer nur das tust was du schon kannst - wirst du immer das bleiben, was du heute bist.