'sharedApplication' is unavailable: not available iOS (App Extension)

My app has been running good 20mins ago.


But when I build it again just after I removed and updated some pods, my app could not complied rightly.


It raise some errors like:

1. 'sharedApplication' is unavailable: not available iOS (App Extension)


2. UIActionSheet 'initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:' is unavailable: not avaliable on ios


but I did not change anything about app setting


Then I rebuild my history code, which was days or months ago, it raised the same error.


Confused.


Need help.


Thanks for all attentions.

Answered by wakary in 84566022

Solved.


Reinstalled cocoapods, then reinstalled all pods.


Thanks.

Accepted Answer

Solved.


Reinstalled cocoapods, then reinstalled all pods.


Thanks.

Set Require Only App-Extension-Safe API to "NO". in build settings for that target and compile.

'sharedApplication' is unavailable: not available iOS (App Extension)
 
 
Q