Reduce Facebook SDK for iPhone

I have included the facebook SDK in my application, the problem is the size of the SDK (about 12 MB), is there a way to reduce this size? I use only the dialog with the facebook ribbon ...

I tried to delete the “Facebook SDK” document file (11+ MB) from the actual Facebook SDK folder, which is surprising that I can still use facebook in my application, share elements through the feed dialog. HOWEVER, I get about 70 warnings: S

warning: (armv7) / Users / Desktop / iPhone App / FacebookSDK.framework / FacebookSDK (FBRequest.o) cannot open the file file: (armv7)

is there anyway to get rid of this warning OR I have no choice but to with the same facebook SDK size, for example. 12mb

I just tried to run the application on the simulator, but it does not give me any warning, however on both iPhone 4 and 5 devices it gives me about 70 warnings ...

+4
source share
2 answers

Do one thing, integrate it with your application, and then see the size of the application .... and you do not need to add the entire folder to it .... only sdk for Facebook, the rest are samples from which you can use any according to yours requirements.

Hope this is what you need ...

0
source

Along with adding only framework files ... When your application is actually archived and the .ipa application file (iOS) is created, you will see a drop in the size of the TREMENDOUS file.

For instance.

I added

ZXing (barcode scanner) .... which is only 212 MB Parse SDK Facebook SDK iCarousel 10 view controllers Target-Zip

Even with all this in my application, my .ipa sits just above 4mb. Which is pretty small by today's standards for an iOS app. Installed is 6.7mb

The easiest way to tell how bit it will be is to run it on the device.

On an iOS device (possibly even in a simulator), go to Settings> General> Use and find it in the list. My bet is that you will be shocked at how small the actual application is when it is compiled.

So the main problem is that your settings and how you set up is your main question ... not size. I would look at that.

0
source

Source: https://habr.com/ru/post/1484171/


All Articles