Closed serraojoao closed 1 year ago
couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2023-04-24 00:46:20.706034-0700 Runner[2324:84614] [Default] Task Runner[2324]/1#4 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil 2023-04-24 00:46:20.938944-0700 Runner[2324:84833] flutter: SUCCESS 2023-04-24 00:46:20.940481-0700 Runner[2324:84614] Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x115d044e0>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' First throw call stack: (0x18376d70c 0x19aea8f04 0x1862972ec 0x185c22e94 0x18629d648 0x185d1a4cc 0x185c35b8c 0x185b64518 0x185b64be4 0x185b64db0 0x18371921c 0x1836ea454 0x1836e59dc 0x1836f8c30 0x1a3f2d988 0x185ef3c50 0x185c8d3d0 0x1000c1550 0x1002303d0) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x115d044e0>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' terminating with uncaught exception of type NSException
Hey @serraojoao , You need to provide a filePath to fix this for now. Moving forward we will fix this in the next update. For Android filepath is optional but for iOS it's not which is crashing it, So we will make it optional for iOS as well in the coming update.
hi @khanmujeeb687 thanks for your message, indeed if i pass a file path it does not crash but it seems like trying to share a non existing file in this case.
Do you have a timeline for this issue to be fixed? thank you very much.
e.g.: i passed an empty string to the parameter. filePath: ''
Fixed with version 0.2.3
When using shareToSystem in iOS app crashes.
device: iPhone SE iOS: 16.3.1 appinio_social_share: ^0.2.1
await AppinioSocialShare().shareToSystem(title, text);
Error:
-canOpenURL: failed for URL: "instagram://" - error: "Não foi possível concluir a operação. (OSStatus, erro -10814.)" -canOpenURL: failed for URL: "whatsapp://" - error: "Não foi possível concluir a operação. (OSStatus, erro -10814.)" -canOpenURL: failed for URL: "tg://" - error: "Não foi possível concluir a operação. (OSStatus, erro -10814.)" -canOpenURL: failed for URL: "fb-messenger://" - error: "This app is not allowed to query for scheme fb-messenger" -canOpenURL: failed for URL: "tiktok://" - error: "This app is not allowed to query for scheme tiktok" -canOpenURL: failed for URL: "instagram-stories://" - error: "Não foi possível concluir a operação. (OSStatus, erro -10814.)" -canOpenURL: failed for URL: "twitter://" - error: "Não foi possível concluir a operação. (OSStatus, erro -10814.)" appinio_social_share/ShareUtil.swift:284: Fatal error: Unexpectedly found nil while unwrapping an Optional value appinio_social_share/ShareUtil.swift:284: Fatal error: Unexpectedly found nil while unwrapping an Optional value