I'm following this official documentation to install FB SDK and trying to integrate it with my React Native project: https://developers.facebook.com/docs/ios/getting-started/ , so that I can show a Facebook share dialog in my app.
However, one of the steps requires to use CocoaPod to get the libraries. My React Native project doesn't work well with CocoaPod, I want to avoid it as much as possible. Is there a way to install the libraries manually without using CocoaPods?
Much appreciated if you can point me to some documentation or tutorials. Thanks!
You can download the entire iOS SDK (outside of Cocoapods) by going to bottom of this page:
https://developers.facebook.com/docs/ios/componentsdks
There also seems to be a Reactive Native-focused tutorial found here, where it looks like you can use npm install and react-native link.
Related
I'm new to using Facebook & ios development, so I apologize if this is a really stupid question:
Aren't libraries used in iOS development usually in the form of .framework? Why are FBSDK libraries from Cocoapods just a directory full of .h's and .m's? Is there a way for me to convert them into a framework?
I'm using something called the Intel Multi-OS-Engine to enable iOS development using Java, and for it to generate bindings to third-party libraries, they must be in the form of .framework...
Thanks so much!
You can download latest from here
For more information look at quickstart
guide https://developers.facebook.com/docs/facebook-login/ios
I am in the need of older version of Google Mobile Ads SDK iOS may be 7.7.0 or older. Please share if anyone has it. I need to work on Xcode 6.3.2 and iOS 8.3. but latest version needs iOS 9 or later.
Thanks.
In case anyone is looking for the answer to this question, as I was today... Here is a solution that incorporates Nika's fine answer and gives you a standalone solution for closed-source frameworks like these.
The Cocoapods specs need to be public and if you go to where those specs are published, in this case: https://github.com/CocoaPods/Specs/tree/master/Specs/5/9/a/Google-Mobile-Ads-SDK
You'll find a list of all the versions of Google Mobile Ads published via Cocoapods.
Each spec contains a download link, so the spec for version 7.59.0 of the SDK / framework shows that link to be https://dl.google.com/dl/cpdc/de07064cf20bb7a6/Google-Mobile-Ads-SDK-7.59.0.tar.gz
You can solve your problem yourself mate:
Step 1: learn cocoapods. Cocoapods are used to integrate 3rd party libraries. It usually stores many many versions of the same libraries. There are plenty of tutorials on this under 10 minutes on youtube.
Step 2: import the version of google mobile ads library you need like this pod 'GoogleMobileAds', '~> 7.7'
I was playing around with Facebook SDK with react-native generated ios app template. I was following the instructions here: https://developers.facebook.com/docs/ios/getting-started but somehow did not see Framework Search Paths mentioned in step 4.5. the react-native generated ios project seems to only have header search path, as shown below.
I was using latest Xcode version (9.3)
Try upgrading project templates - Upgrade guide
Or try to use RN wrappers available on the internet.
I personally like these two - this and this
Good luck!
You need to change Basic to All tab at the top of the menu
No need of upgrading anything
I'm trying to add the 3rd party plugin; BarcodeScanner to my project and have done successfully. When building the final app it works fine.
However is there any way to add this plugin to allow the iOS 'PhoneGap' app without having to build the project?
I've tried CLI to add the plugin and also have added the plugin to my config.xml; I've also looked on google and cannot find an answer. Some people say you can and others say you can't.
Thanks
bump
PhoneGap App is essentially a cordova app with a fixed set of plugins installed. The app is capable of downloading and executing the css/html/javascript parts of a Cordova application. However, It is not possible to install a plugin that includes native parts over-the-air.
Any simple way to download the iOS SDK like before? Previously I could just go online and download it from Google and simply add it into my xCode project now it seems all complicated with the Cocoapod install stuff..
Is there any simple way around this just to simply download the SDK from Google like I used to be able to do before??
Thanks,
Curtis