简体   繁体   中英

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. How can I import it in a way that my iOS 5 users can still launch the app without having it?

Just set it as optional in Build phases. See below image for reference.

在此处输入图片说明

Just set the SocialFramework as a optional.

Hope this help!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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