You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using CocaPods? If so you can set the *Require Only App-Extension-Safe API * to NO your target.
Add the following lines in your Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
end
end
end
I use QRCodeReader in an app extension. Xcode reports the error in,
UIApplication.shared
is not available in app extension.The text was updated successfully, but these errors were encountered: