Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
11.4.15.2 (if issue is Swift related)Cocoapods version 7.0.0I have a project with only Objective-C codebase. For me, it's very important to keep the application size small. The latest SDK contains swift files that made my application bigger. Please, provide a configuration without swift files. They are necessary for obj-c only apps.
I did a demo app with v6 and v7 sdk intergration.

I have the same problem, I have to add a swift file to the project in order to eliminate compilation errors.
My project is developed in Objective-c, can I take this update or should to take a previous version?
@rahul-inspired-iosdeveloper Personally I do not recommend 7.0, 6.5.2 is better.
My project is developed in Objective-c, can I take this update or should to take a previous version?
You could use the latest version. There are no critical issues or problems. It just adds swift runtime into your app. Btw, this runtime will be removed for 12.2+ ios devices on the apple appstore side.
My project is developed in Objective-c, can I take this update or should to take a previous version?
You could use the latest version. There are no critical issues or problems. It just adds swift runtime into your app. Btw, this runtime will be removed for 12.2+ ios devices on the apple appstore side.
As you mentioned above this newly added swift runtime will increase the app(ipa) size?
My project is developed in Objective-c, can I take this update or should to take a previous version?
You could use the latest version. There are no critical issues or problems. It just adds swift runtime into your app. Btw, this runtime will be removed for 12.2+ ios devices on the apple appstore side.
As you mentioned above this newly added swift runtime will increase the app(ipa) size?
yes, it's
btw, I have tried adding lib via SPM and it also doesn't have obj-c only modules
If you explicitly DO NOT want to include Swift, import
FBSDKCoreKitFBSDKLoginKitandFBSDKShareKit

My project is developed in Objective-c, can I take this update or should to take a previous version?
You could use the latest version. There are no critical issues or problems. It just adds swift runtime into your app. Btw, this runtime will be removed for 12.2+ ios devices on the apple appstore side.
As you mentioned above this newly added swift runtime will increase the app(ipa) size?
yes, it's
Can you suggest any workaround to avoid this swift files.
just use 6.x.x
btw, I have tried adding lib via SPM and it also doesn't have obj-c only modules
You should be able to import FBSDKCoreKit in your project files using SPM. Is this not the case?
btw, I have tried adding lib via SPM and it also doesn't have obj-c only modules
You should be able to import FBSDKCoreKit in your project files using SPM. Is this not the case?
no, I don't have FBSDKCoreKit in the targets list for SPM. In any case, I would prefer to use Cocoapods.
Overall I am hesitant to hold back broader development efforts to continue to support users of iOS 12.0. Of course individual user bases per app will vary but according to https://developer.apple.com/support/app-store/, around 77% of devices released in the past four years are running iOS 13 and 70% of all devices are running iOS 13. It doesn't specify what percentage of devices are running iOS 12 vs iOS 12.2 but it's unlikely that none of them are running 12.2.
@pingwinator - Did some quick tests using the sample app you provided (see snippets below). Is it fair to say the total size difference is ~2.3 mb and only for devices running iOS 12.0 and below?
Using v7.0.0
App Thinning Size Report for All Variants of FacebookTestIntegration
Variant: FacebookTestIntegration-08D0FAED-0DD1-4C7A-B031-365D7D077292.ipa
Supported variant descriptors: [device: iPhone9,4, os-version: 13.0], [device: iPhone10,5, os-version: 13.0], [device: iPad8,11, os-version: 13.0], [device: iPad5,3, os-version: 13.0], [device: iPhone10,6, os-version: 13.0], [device: iPad6,12, os-version: 13.0], [device: iPad7,12, os-version: 13.0], [device: iPad7,1, os-version: 13.0], [device: iPad5,2, os-version: 13.0], [device: iPad8,12, os-version: 13.0], [device: iPod9,1, os-version: 13.0], [device: iPad8,3, os-version: 13.0], [device: iPhone10,1, os-version: 13.0], [device: iPhone8,4, os-version: 13.0], [device: iPhone11,6, os-version: 13.0], [device: iPad11,1, os-version: 13.0], [device: iPad11,4, os-version: 13.0], [device: iPad7,2, os-version: 13.0], [device: iPhone9,2, os-version: 13.0], [device: iPad8,4, os-version: 13.0], [device: iPhone8,2, os-version: 13.0], [device: iPad8,5, os-version: 13.0], [device: iPhone11,8, os-version: 13.0], [device: iPad6,8, os-version: 13.0], [device: iPad7,5, os-version: 13.0], [device: iPad8,6, os-version: 13.0], [device: iPad7,3, os-version: 13.0], [device: iPad6,11, os-version: 13.0], [device: iPhone10,2, os-version: 13.0], [device: iPhone8,1, os-version: 13.0], [device: iPad8,9, os-version: 13.0], [device: iPad11,2, os-version: 13.0], [device: iPhone10,4, os-version: 13.0], [device: iPhone9,3, os-version: 13.0], [device: iPhone12,3, os-version: 13.0], [device: iPad7,6, os-version: 13.0], [device: iPad6,7, os-version: 13.0], [device: iPhone11,2, os-version: 13.0], [device: iPad8,1, os-version: 13.0], [device: iPhone12,8, os-version: 13.0], [device: iPad6,3, os-version: 13.0], [device: iPhone9,1, os-version: 13.0], [device: iPad8,2, os-version: 13.0], [device: iPhone12,1, os-version: 13.0], [device: iPad8,10, os-version: 13.0], [device: iPad8,7, os-version: 13.0], [device: iPad5,1, os-version: 13.0], [device: iPad8,8, os-version: 13.0], [device: iPad5,4, os-version: 13.0], [device: iPhone12,5, os-version: 13.0], [device: iPad6,4, os-version: 13.0], [device: iPhone10,3, os-version: 13.0], [device: iPhone11,4, os-version: 13.0], [device: iPad7,4, os-version: 13.0], [device: iPad11,3, os-version: 13.0], and [device: iPad7,11, os-version: 13.0]
App + On Demand Resources size: 548 KB compressed, 1.5 MB uncompressed
App size: 548 KB compressed, 1.5 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Variant: FacebookTestIntegration-B07DDE13-43E6-4A92-A777-49F447F479C2.ipa
Supported variant descriptors: [device: iPhone8,4, os-version: 12.2], [device: iPhone8,2, os-version: 12.2], [device: iPhone9,2, os-version: 12.2], [device: iPod9,1, os-version: 12.2], [device: iPad4,3, os-version: 12.2], [device: iPad6,8, os-version: 12.2], [device: iPad8,2, os-version: 12.2], [device: iPad6,3, os-version: 12.2], [device: iPad4,8, os-version: 12.2], [device: iPad6,12, os-version: 12.2], [device: iPhone11,6, os-version: 12.2], [device: iPad4,1, os-version: 12.2], [device: iPad7,4, os-version: 12.2], [device: iPad5,4, os-version: 12.2], [device: iPad8,6, os-version: 12.2], [device: iPad8,4, os-version: 12.2], [device: iPad4,6, os-version: 12.2], [device: iPhone7,1, os-version: 12.2], [device: iPad4,5, os-version: 12.2], [device: iPhone6,1, os-version: 12.2], [device: iPad11,1, os-version: 12.2], [device: iPad8,3, os-version: 12.2], [device: iPhone10,2, os-version: 12.2], [device: iPad11,2, os-version: 12.2], [device: iPhone10,3, os-version: 12.2], [device: iPad8,7, os-version: 12.2], [device: iPhone9,3, os-version: 12.2], [device: iPad7,1, os-version: 12.2], [device: iPad7,5, os-version: 12.2], [device: iPhone7,2, os-version: 12.2], [device: iPad6,4, os-version: 12.2], [device: iPhone10,4, os-version: 12.2], [device: iPhone8,1, os-version: 12.2], [device: iPod7,1, os-version: 12.2], [device: iPhone11,8, os-version: 12.2], [device: iPhone9,1, os-version: 12.2], [device: iPad7,3, os-version: 12.2], [device: iPhone10,1, os-version: 12.2], [device: iPhone11,2, os-version: 12.2], [device: iPad4,9, os-version: 12.2], [device: iPad5,2, os-version: 12.2], [device: iPhone10,6, os-version: 12.2], [device: iPad4,2, os-version: 12.2], [device: iPad11,3, os-version: 12.2], [device: iPhone6,2, os-version: 12.2], [device: iPad4,4, os-version: 12.2], [device: iPad8,1, os-version: 12.2], [device: iPhone11,4, os-version: 12.2], [device: iPad11,4, os-version: 12.2], [device: iPad6,7, os-version: 12.2], [device: iPad7,2, os-version: 12.2], [device: iPad4,7, os-version: 12.2], [device: iPad5,3, os-version: 12.2], [device: iPad5,1, os-version: 12.2], [device: iPhone9,4, os-version: 12.2], [device: iPhone10,5, os-version: 12.2], [device: iPad6,11, os-version: 12.2], [device: iPad8,5, os-version: 12.2], [device: iPad7,6, os-version: 12.2], and [device: iPad8,8, os-version: 12.2]
App + On Demand Resources size: 548 KB compressed, 1.5 MB uncompressed
App size: 548 KB compressed, 1.5 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Variant: FacebookTestIntegration-D6D7EA87-37AB-4D81-AF8A-CEF72A7F2A44.ipa
Supported variant descriptors: [device: iPhone7,1, os-version: 12.0], [device: iPad4,3, os-version: 12.0], [device: iPad8,6, os-version: 12.0], [device: iPad8,1, os-version: 12.0], [device: iPad4,2, os-version: 12.0], [device: iPhone11,6, os-version: 12.0], [device: iPhone9,2, os-version: 12.0], [device: iPad8,7, os-version: 12.0], [device: iPhone6,1, os-version: 12.0], [device: iPad6,4, os-version: 12.0], [device: iPhone8,1, os-version: 12.0], [device: iPhone10,2, os-version: 12.0], [device: iPad6,11, os-version: 12.0], [device: iPad8,4, os-version: 12.0], [device: iPad7,5, os-version: 12.0], [device: iPhone10,1, os-version: 12.0], [device: iPad5,2, os-version: 12.0], [device: iPhone8,4, os-version: 12.0], [device: iPad8,5, os-version: 12.0], [device: iPhone8,2, os-version: 12.0], [device: iPad5,3, os-version: 12.0], [device: iPhone9,3, os-version: 12.0], [device: iPhone11,8, os-version: 12.0], [device: iPad4,9, os-version: 12.0], [device: iPad4,6, os-version: 12.0], [device: iPad5,1, os-version: 12.0], [device: iPad7,1, os-version: 12.0], [device: iPad7,2, os-version: 12.0], [device: iPad4,1, os-version: 12.0], [device: iPad4,7, os-version: 12.0], [device: iPhone10,4, os-version: 12.0], [device: iPad4,5, os-version: 12.0], [device: iPad8,8, os-version: 12.0], [device: iPhone11,4, os-version: 12.0], [device: iPhone10,3, os-version: 12.0], [device: iPad6,7, os-version: 12.0], [device: iPad7,4, os-version: 12.0], [device: iPhone9,1, os-version: 12.0], [device: iPhone11,2, os-version: 12.0], [device: iPhone6,2, os-version: 12.0], [device: iPod7,1, os-version: 12.0], [device: iPad4,4, os-version: 12.0], [device: iPhone7,2, os-version: 12.0], [device: iPad8,2, os-version: 12.0], [device: iPhone9,4, os-version: 12.0], [device: iPad4,8, os-version: 12.0], [device: iPad6,12, os-version: 12.0], [device: iPad7,6, os-version: 12.0], [device: iPhone10,6, os-version: 12.0], [device: iPad6,3, os-version: 12.0], [device: iPhone10,5, os-version: 12.0], [device: iPad8,3, os-version: 12.0], [device: iPad6,8, os-version: 12.0], [device: iPad5,4, os-version: 12.0], and [device: iPad7,3, os-version: 12.0]
App + On Demand Resources size: 2.8 MB compressed, 7.9 MB uncompressed
App size: 2.8 MB compressed, 7.9 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Variant: FacebookTestIntegration.ipa
Supported variant descriptors: Universal
App + On Demand Resources size: 2.8 MB compressed, 7.9 MB uncompressed
App size: 2.8 MB compressed, 7.9 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Using v6.5.2
App Thinning Size Report for All Variants of FacebookTestIntegration
Variant: FacebookTestIntegration-097EBA9E-EF40-4A4C-91F6-52748DA6F205.ipa
Supported variant descriptors: [device: iPhone9,3, os-version: 12.0], [device: iPhone11,6, os-version: 12.0], [device: iPad4,3, os-version: 12.2], [device: iPad5,2, os-version: 12.2], [device: iPad5,1, os-version: 12.2], [device: iPhone11,2, os-version: 12.2], [device: iPhone8,1, os-version: 12.0], [device: iPhone9,2, os-version: 12.2], [device: iPad8,6, os-version: 12.2], [device: iPad8,3, os-version: 12.0], [device: iPad4,7, os-version: 12.0], [device: iPad7,6, os-version: 12.0], [device: iPad4,2, os-version: 12.0], [device: iPhone7,1, os-version: 12.0], [device: iPad5,1, os-version: 12.0], [device: iPhone10,1, os-version: 12.2], [device: iPad7,2, os-version: 12.2], [device: iPhone9,4, os-version: 12.2], [device: iPhone9,2, os-version: 12.0], [device: iPad8,3, os-version: 12.2], [device: iPhone8,2, os-version: 12.0], [device: iPhone8,4, os-version: 12.0], [device: iPhone10,2, os-version: 12.2], [device: iPhone10,4, os-version: 12.2], [device: iPhone6,1, os-version: 12.0], [device: iPad4,1, os-version: 12.2], [device: iPad6,12, os-version: 12.0], [device: iPhone6,1, os-version: 12.2], [device: iPad4,4, os-version: 12.2], [device: iPhone10,5, os-version: 12.2], [device: iPad5,3, os-version: 12.0], [device: iPad6,8, os-version: 12.0], [device: iPad5,4, os-version: 12.0], [device: iPad4,6, os-version: 12.2], [device: iPhone10,6, os-version: 12.2], [device: iPad8,2, os-version: 12.0], [device: iPhone11,2, os-version: 12.0], [device: iPad5,3, os-version: 12.2], [device: iPad7,6, os-version: 12.2], [device: iPad7,5, os-version: 12.0], [device: iPad4,6, os-version: 12.0], [device: iPhone9,1, os-version: 12.0], [device: iPad11,4, os-version: 12.2], [device: iPad4,5, os-version: 12.2], [device: iPad8,7, os-version: 12.0], [device: iPhone11,8, os-version: 12.2], [device: iPhone6,2, os-version: 12.2], [device: iPad4,7, os-version: 12.2], [device: iPhone10,5, os-version: 12.0], [device: iPad8,8, os-version: 12.0], [device: iPad11,3, os-version: 12.2], [device: iPad8,2, os-version: 12.2], [device: iPad7,1, os-version: 12.2], [device: iPhone7,1, os-version: 12.2], [device: iPad4,9, os-version: 12.2], [device: iPod7,1, os-version: 12.2], [device: iPad6,12, os-version: 12.2], [device: iPad8,5, os-version: 12.0], [device: iPhone9,1, os-version: 12.2], [device: iPad7,2, os-version: 12.0], [device: iPad4,5, os-version: 12.0], [device: iPad6,4, os-version: 12.0], [device: iPad7,4, os-version: 12.0], [device: iPad6,3, os-version: 12.2], [device: iPad4,4, os-version: 12.0], [device: iPod7,1, os-version: 12.0], [device: iPad4,9, os-version: 12.0], [device: iPad7,4, os-version: 12.2], [device: iPad8,4, os-version: 12.2], [device: iPad6,7, os-version: 12.2], [device: iPhone10,2, os-version: 12.0], [device: iPad11,1, os-version: 12.2], [device: iPhone8,1, os-version: 12.2], [device: iPhone11,4, os-version: 12.2], [device: iPad6,11, os-version: 12.0], [device: iPhone6,2, os-version: 12.0], [device: iPad8,6, os-version: 12.0], [device: iPhone11,4, os-version: 12.0], [device: iPad8,7, os-version: 12.2], [device: iPad8,1, os-version: 12.0], [device: iPad7,1, os-version: 12.0], [device: iPad8,1, os-version: 12.2], [device: iPad7,5, os-version: 12.2], [device: iPhone11,6, os-version: 12.2], [device: iPad4,2, os-version: 12.2], [device: iPhone10,1, os-version: 12.0], [device: iPhone7,2, os-version: 12.0], [device: iPad11,2, os-version: 12.2], [device: iPad4,3, os-version: 12.0], [device: iPad5,2, os-version: 12.0], [device: iPad4,8, os-version: 12.2], [device: iPhone10,4, os-version: 12.0], [device: iPhone9,4, os-version: 12.0], [device: iPhone10,6, os-version: 12.0], [device: iPod9,1, os-version: 12.2], [device: iPad8,5, os-version: 12.2], [device: iPad4,1, os-version: 12.0], [device: iPad4,8, os-version: 12.0], [device: iPhone11,8, os-version: 12.0], [device: iPhone8,4, os-version: 12.2], [device: iPad6,7, os-version: 12.0], [device: iPad5,4, os-version: 12.2], [device: iPad6,3, os-version: 12.0], [device: iPad6,4, os-version: 12.2], [device: iPhone8,2, os-version: 12.2], [device: iPad6,11, os-version: 12.2], [device: iPad6,8, os-version: 12.2], [device: iPhone7,2, os-version: 12.2], [device: iPad7,3, os-version: 12.2], [device: iPad7,3, os-version: 12.0], [device: iPhone10,3, os-version: 12.2], [device: iPad8,8, os-version: 12.2], [device: iPhone10,3, os-version: 12.0], [device: iPad8,4, os-version: 12.0], and [device: iPhone9,3, os-version: 12.2]
App + On Demand Resources size: 523 KB compressed, 1.5 MB uncompressed
App size: 523 KB compressed, 1.5 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Variant: FacebookTestIntegration-9A203AC7-4EF1-48FF-8798-4823777C3E74.ipa
Supported variant descriptors: [device: iPhone8,2, os-version: 13.0], [device: iPad7,1, os-version: 13.0], [device: iPad7,4, os-version: 13.0], [device: iPhone10,4, os-version: 13.0], [device: iPad8,7, os-version: 13.0], [device: iPad8,6, os-version: 13.0], [device: iPad7,6, os-version: 13.0], [device: iPad8,8, os-version: 13.0], [device: iPhone8,4, os-version: 13.0], [device: iPad8,11, os-version: 13.0], [device: iPad7,2, os-version: 13.0], [device: iPad11,1, os-version: 13.0], [device: iPad6,3, os-version: 13.0], [device: iPad7,5, os-version: 13.0], [device: iPad7,12, os-version: 13.0], [device: iPhone11,8, os-version: 13.0], [device: iPad5,4, os-version: 13.0], [device: iPhone10,2, os-version: 13.0], [device: iPhone11,6, os-version: 13.0], [device: iPad5,3, os-version: 13.0], [device: iPhone10,6, os-version: 13.0], [device: iPad6,8, os-version: 13.0], [device: iPhone12,1, os-version: 13.0], [device: iPad5,2, os-version: 13.0], [device: iPad8,1, os-version: 13.0], [device: iPad8,2, os-version: 13.0], [device: iPad8,5, os-version: 13.0], [device: iPhone10,3, os-version: 13.0], [device: iPhone12,5, os-version: 13.0], [device: iPad11,2, os-version: 13.0], [device: iPad8,12, os-version: 13.0], [device: iPhone12,3, os-version: 13.0], [device: iPad5,1, os-version: 13.0], [device: iPhone10,1, os-version: 13.0], [device: iPhone8,1, os-version: 13.0], [device: iPhone9,4, os-version: 13.0], [device: iPad6,7, os-version: 13.0], [device: iPad8,3, os-version: 13.0], [device: iPad11,3, os-version: 13.0], [device: iPad8,10, os-version: 13.0], [device: iPhone9,1, os-version: 13.0], [device: iPad11,4, os-version: 13.0], [device: iPhone12,8, os-version: 13.0], [device: iPhone11,2, os-version: 13.0], [device: iPhone9,3, os-version: 13.0], [device: iPhone9,2, os-version: 13.0], [device: iPad8,4, os-version: 13.0], [device: iPad6,11, os-version: 13.0], [device: iPod9,1, os-version: 13.0], [device: iPad8,9, os-version: 13.0], [device: iPhone11,4, os-version: 13.0], [device: iPad6,4, os-version: 13.0], [device: iPad6,12, os-version: 13.0], [device: iPad7,11, os-version: 13.0], [device: iPhone10,5, os-version: 13.0], and [device: iPad7,3, os-version: 13.0]
App + On Demand Resources size: 523 KB compressed, 1.5 MB uncompressed
App size: 523 KB compressed, 1.5 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Variant: FacebookTestIntegration.ipa
Supported variant descriptors: Universal
App + On Demand Resources size: 523 KB compressed, 1.5 MB uncompressed
App size: 523 KB compressed, 1.5 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed
Overall I am hesitant to hold back broader development efforts to continue to support users of iOS 12.0.
@joesus does it mean that FB will be focused on porting this SDK to swift? In that case, please add a note in the readme file: if you want to have obj-c only app, please stay with v6.x.x SDK.
ps I know how app thining works and swift runtime is a part of the 12.2 and later. My point is Don't force to use swift in obj-c only apps. Please, give an option. option to stay with old SDK is ok for me.
FB will be focused on porting this SDK to swift?
The ultimate goal is to keep this project current and that means adopting modern languages and best practices.
In that case, please add a note in the readme file: if you want to have obj-c only app, please stay with v6.x.x SDK.
Anyone who wants to maintain an ObjC only app has a good reason and is an advanced enough developer to either update their app or to find this conversation and unblock themselves. We will not advocate staying on old versions to help people save 2MB for an ever decreasing subset of their user-base.
option to stay with old SDK is ok for me.
ymmv but that is your decision.
Going to close this since issue it is by design that there is no longer an Obj only SDK. There are no plans as of now to add one. I think the tradeoffs are clearly outlined in this conversation and I will leave it open for comment.
@pingwinator
I found that the problem is that in the SDK version 7.0, the addition of swift files caused this situation. I cloned the latest code, and then removed all the swift files from the Compile Sources, and the compiled SDK was what I wanted.


@MikoShao this is true for the existing SDK version. Those swift are necessary (that why I created this ticket), but FB developers could use them in future versions.
@pingwinator
This is a problem. If developers can confirm that deleting the swift file will not affect the oc project, then in future versions, I may do so.
@MikoShao - This is actually a few questions which I'll try to answer.
Yes.
No.
Uncertain. I am leaning towards no because that should be reserved for breaking changes to the API, not the use of files that are already in the project.
You are developing an SDK, not a end user product. I thought it is quite obvious, that every change you make should be Considered A Lot. For every API change, you waste millions of developer hours, who did not want any part of it. Some manager asked to integrate facebook authentication years ago, and now everyone, all of us are getting +100mb on our IPA sizes. Because you decided to use new fancy shiny thing.
I don't mean to offend, but just, come on. I am making the game engine. People want facebook in their games. When they integrate it, they trippling their tiny arcade game sizes. Just because you want to chase tech and bored in the office (or home, I guess) and want to "improve" something which is already working without gaining anything for end users of your product, except wasted hours.
P.S. No one asks you not to support swift of change APIs, all we want is a branch w/o mandatory Swift runtime in our apps.
Most helpful comment
You could use the latest version. There are no critical issues or problems. It just adds swift runtime into your app. Btw, this runtime will be removed for 12.2+ ios devices on the apple appstore side.