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

[English] (I'm using translation.)
When developing an app with Swift, 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. occurs.
This happens when using PKHUD, SVProgressHUD, etc.
Pod in use↓
Pod'Firebase / Analytics'
pod'Firebase / AdMob'
pod'LicensePlist'
Pod "One Signal"
Pod "PKHUD"

Extensions used ↓
OneSignalNotificationServiceExtension

I'm waiting your reply.

Hello @Re_sa_ku_1229 , did you manage to find the error? ?

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