简体   繁体   English

在具有社交框架的iOS 5上启动应用程序会导致崩溃

[英]Launching app on iOS 5 with Social framework causes crash

I haven't used Social framework in my code at all yet, I've only imported it into the project. 我尚未在代码中使用社交框架,只是将其导入到项目中。 This causes it to crash on iOS 5, because Social framework isn't supported yet for that. 这导致它在iOS 5上崩溃,因为尚不支持社交框架。 How can I import it in a way that my iOS 5 users can still launch the app without having it? 我该如何导入它,以使我的iOS 5用户仍然可以在没有该应用程序的情况下启动该应用程序?

Just set it as optional in Build phases. 只需在构建阶段将其设置为可选。 See below image for reference. 请参阅下图以供参考。

在此处输入图片说明

Just set the SocialFramework as a optional. 只需将SocialFramework设置为可选。

Hope this help!! 希望这个帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM