SVProgressHUD ‘sharedApplication’ is unavailable: not available on iOS (App Extension) - Use view co
解决方案:
在Podfile中增加以下代码,然后重新pod即可解决问题
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘APPLICATION_EXTENSION_API_ONLY’] = ‘NO’
end
end
end
原因:
适配 iOS 15 的 SceneDelegate
APPLICATION_EXTENSION_API_ONLY = YES ,
如果设置为 APPLICATION_EXTENSION_API_ONLY = NO 又会报错
所以需要再podifile中添加