使用组件化开发时报错:'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.
解决:
在Pods工程中找到对应的targets,build settings
中搜索Require only app-extension-safe api
并改为NO
使用组件化开发时报错:'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.
解决:
在Pods工程中找到对应的targets,build settings
中搜索Require only app-extension-safe api
并改为NO
本文标题:UIApplication-shared报错
本文链接:https://www.haomeiwen.com/subject/ryvztdtx.html
网友评论