exponea / exponea-ios-sdk

MIT License
19 stars 27 forks source link

after run pod file. they are showing issue #67

Open rameshmicapg opened 1 month ago

rameshmicapg commented 1 month ago

'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

  1. 'shared' has been explicitly marked unavailable here (UIKit.UIApplication)

these error are showing many class so please let me know this issue.

Screenshot 2024-05-06 at 7 20 46 PM
adam1929 commented 1 month ago

Hi @rameshmicapg thank you for reporting. I was not able to understand why this error is shown to you. We are using UIApplication.shared in Example app and SDK for long time without this problem. Could you please describe your setup more detailed? For example XCode version, supported destination (Xcode>Target>General), swift version. More info = higher chance to detect problem. Thank you.

adam1929 commented 1 month ago

Or you are using SDK in extension probably? If so, please try to describe your usage for that. SDK should be used in main app module and Notification extensions has to use ExponeaSDK-Notifications. App extensions has to be lightweight as possible. Thank you for clarification.