Reputation: 8942
In my universal iOS app written in Objective-C, I use the Facebook SDK, which unfortunately takes a lot of space and import it using the following statement at the top of my file:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
As I only require this for the iPhone part of the app, I'm wondering whether it would be maybe possible to import the Framework only if the app is installed on an iPhone to save my iPad users some storage. Is there any way to realise that?
Upvotes: 1
Views: 103
Reputation: 318804
This can't be done because the inclusion and use of the Facebook SDK is done at compile/link time. But for a universal app, the detection of the device is done at runtime. At that point there is just the one binary that already has the SDK built into it.
Upvotes: 1