美文网首页
sharedapplication is unavailable

sharedapplication is unavailable

作者: 一念之间_一念之间 | 来源:发表于2016-03-28 16:00 被阅读613次

今天在github上下载一个项目遇到了这样一个问题:
sharedapplication is unavailable not available on ios app extension
问题是使用了AFNetworking的扩展,导致编译不通过,在网上查了很久终于找到解决办法,在Podfile中增加下面的代码就可以解决问题:
<pre>
<code>
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
<code>
</pre>

相关文章

网友评论

      本文标题:sharedapplication is unavailable

      本文链接:https://www.haomeiwen.com/subject/orbjlttx.html