关于报错'sharedApplication' is unavailable: not available on iOS (App Extension)

解决办法:

在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

作者:十方树

链接:https://www.jianshu.com/p/9479aab910f0

来源:

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

你可能感兴趣的:(关于报错'sharedApplication' is unavailable: not available on iOS (App Extension))