‘sharedApplication’ is unavailable: not available on iOS (App Extension)

This error may occur when we try to build some third-party pods which are using [UIApplication sharedApplication]

According to Apple 

Some APIs Are Unavailable to App Extensions

Because of its focused role in the system, an app extension is ineligible to participate in certain activities. An app extension cannot:

  • Access a sharedApplication object, and so cannot use any of the methods on that object

To temporarily get rid of this you can Set Require Only App-Extension-Safe API to “NO”. in build settings for that target and compile .

 


1 Comment

full hd tek parça izle · January 17, 2021 at 5:30 am

Looking forward to reading more. Great blog article. Want more. Lauren Jere Shannah

Leave a Reply

Your email address will not be published.