简体   繁体   English

在iOS5中找不到社交框架

[英]Social FrameWork not found in ios5

I added social framework in my project & make as a optional. 我在项目中添加了社交框架,并使其成为可选项目。 My app is also not crash for ios5. 我的应用程序也不会在ios5上崩溃。 But when i try to open my project in xcode 4.2,It shows me error on #import<Social/Social.h> like social.h not found. But when i try to open my project in xcode 4.2,It shows me error on #import<Social/Social.h>如social.h找不到。

So,i can't able to do any coding on old xcode version. 因此,我无法在旧的xcode版本上进行任何编码。

What can i do now? 我现在能做什么?

Social Framework is available from iOS 6 not from iOS 5 so it will give error in ios 5. Xcode 4.2 don't have iOS 6 compatibility, iOS6 is supported in xcode 4.5 or later so Xcode 4.2 cannot find where Social framework and thus there is error. iOS 6提供了Social Framework,而不是iOS 5提供了Social Framework,因此它将在ios 5中出错。Xcode 4.2不具有iOS 6兼容性,xcode 4.5或更高版本支持iOS6,因此Xcode 4.2无法找到Social Framework的位置,因此存在错误。

You can also make the framework as "optional" not "required". 您也可以将框架设置为“可选”而不是“必需”。 You can do this changes by going to "Build Phases" -> "Link Binary With Libraries". 您可以通过“构建阶段”->“将二进制文件与库链接”来进行更改。 And you have to check for framework class by coding. 而且,您必须通过编码检查框架类。

Cheers! 干杯!

iOS 6提供了Social Framework,而不是iOS 5提供了Social Framework,因此它无法在ios 5中使用。Xcode 4.2不具有iOS 6兼容性,xcode 4.5或更高版本支持iOS6,因此Xcode 4.2无法找到Social Framework的来源。显示错误

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

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