Reputation: 3289
I added social framework in my project & make as a optional. My app is also not crash for 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.
So,i can't able to do any coding on old xcode version.
What can i do now?
Upvotes: 0
Views: 2237
Reputation: 2897
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.
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!
Upvotes: 2
Reputation: 4921
Social Framework is available from iOS 6 not from iOS 5 so it will not work 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 coming from so it was showing error
Upvotes: 1