Building Facebook With Latest iOS SDK for ARC and Multiple Developers - ios

I'm attempting to upgrade from Facebook SDK 2.0 to 3.0 and I'm having basically the same issue as is mentioned in this thread: XCode & Facebook IOS SDK - Instructions incorrect but with a slightly different goal I think.
I'm using the instructions here: http://developers.facebook.com/docs/mobile/ios/build/
When I try to build the static library, I get a "no such file or directory" message. I checked, and sure enough, there is no build_facebook_ios_sdk_static_lib.sh file in the "scripts" directory when I try to execute it.
Here's my dilemma. We have multiple developers on the project (and some other members who basically know how to pull down and build within Xcode but that's about it), and I don't want to require all of them to install the Facebook SDK. Same for a build machine (though in that instance I suppose we could install the SDK directly on the build machine).
It sounds like building a static library has been effectively deprecated, or maybe I'm missing something, but what I really need to just get all the pertinent code into our repository, and in a form in which anyone can just pull it down and build. Is this possible with the 3.0 SDK, and if so, what would be the steps to do that?
Thanks!

For the Facebook SDK 3.1 (latest from 3.0) you should not follow the old instructions, instead check these instructions out:
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/

Related

Firebase storage download trouble in iOS device (Unity)

I met unknown trouble trying to setup firebase storage for iOS. I can't download even 1 file in device, but it runs perfectly in Editor.
I am using reference.GetFileAsync() method. Firstly I assumed that I made some wrong package setup or some other silly mistake, but I checked it many-many times. Each Quickstart project here works well on my end. My current project settings and firebase storage settings are identical to provided test examples I run in iOS device successfully.
Here is a xCode output trying to download the file. That is looped and contains only that info: codeshare
Any of logs googling doesn't give me any solution or even idea.
Please, give me some thoughts where to search the problem.. I am totally confused.
I am using MacOSx, Unity 5.5.0/5.5.1, latest Firebase Unity SDK (v1.1.2)
The reason was that firebase database package automatically changed from .NET Subset to .NET option. Changing back solved the problem. But anyway, that means we can't use firebase storage + database in same iOS project in Unity.. That's bad
Firebase Developer here. I'm sorry you encountered this error and I can confirm this was a regression from our initial build in January. This issue has since been resolved in the latest version of Firebase Storage for Unity (3.0.0.0) released for general availability for mobile at GDC.
The latest version will work with the full .Net SDK which is also required for the realtime database in Unity.

Why am I getting 'Braintree/BTUICTAControl.h' file not found error on Braintree manual integration?

I get the following build error after implementing step number four "Add the Braintree SDK code to project" from the Manual Integration Without CocoaPods guide.
braintree_ios/Braintree/UI/Braintree-Payments-UI.h:3:9: 'Braintree/BTUICTAControl.h' file not found
Tested in
New Objective-C iOS app project.
In Xcode 6.1 (6A1042b) and 6.3 (6D543q)
How can I fix this build error?
I work on the Braintree iOS SDK.
I believe using the name Braintree instead of Braintree SDK for the framework target name will resolve this particular issue. I recently updated the manual docs accordingly.
We recommend that you integrate using CocoaPods if at all possible, as it handles all this complexity for you.
Note also that I've responded on the issue you posted on GitHub. Let's resolve this there. Thanks!
Have you tried manually downloading the zip file and not using git?
Try following the second bullet point from the first step.

Integrating Facebook Docset with Xcode

So I downloaded the latest 3.1 Facebook iOS sdk and under the scripts I found a build_documentation.sh which I ran. It completed and generated a com.facebook.Facebook-SDK-3_0-for-iOS.docset file. I am trying to get it to integrate nicely with XCode. I know that apple docs can create documentation that shows up in the quick help panel. My own custom documentation works great.
Does anyone know what I have to do to get the same kind of documentation integration with Facebook?
EDIT:
I tried adding the docset to the corresponding folder according to the instructions here
and restarted Xcode but it didn't work
If you install the SDK from the package you don't have to generate the docset yourself.
Go to https://developers.facebook.com/ios
Click on the Download SDK button
You can get the Facebook Documentation working with the following:
Build the Facebook Documentation with the provided shell scripts
Move the .docset to /Library/Developer/Shared/Documentation/DocSets
If it doesn't work, you may have to check, if you moved the docset to ~/Library/Developer/Shared/Documentation/DocSets. This is sometimes WRONG
Why does it work by installing the Facebook Framework directly from the .pkg?
It moves it to /Library/..., not to ~/Library/...

XCode & Facebook IOS SDK - Instructions incorrect

I am following this guide.
http://developers.facebook.com/docs/mobile/ios/build/
For setting up the Facebook IOS SDK for my XCode project..
I got to the part that says to run
% ~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh
in the terminal..
I tried that and it didn't work, so i went to find that script file manually and it isn't in the folder specified.. My questions is am i missing something? or does anyone know if the file was renamed?
Thanks.
You're right, this script is not included in the newest version on github.
However you can download the SDK and use it as described in the "Getting Started" section - Start a new Xcode Project. So far I had no issues with the SDK 3.0 and ARC in my project.
That script is there in my instance. Is it possible that the facebook-ios-sdk directory isn't in the top level of your home directory as in /Users/yourusername/facebook-ios-sdk? It needs to be there for you to follow the instructions verbatim.

Facebook iOS SDK - How to build static library for Xcode 4.3?

I'm integrating Facebook to my iOS ARC app by following instructions in this link. i'm stuck at building static library step.
https://developers.facebook.com/docs/mobile/ios/build/
I'm using Xcode 4.3 (Developer folder now moved inside the Application) so the script "build_facebook_ios_sdk_static_lib.sh" didn't work. I've tried to modified the script but wasn't successful.
Could someone please help? Thanks !
just edit "build_facebook_ios_sdk_static_lib.sh" with TextEdit
and change:
XCODEBUILD_PATH=/Developer/usr/bin
to:
XCODEBUILD_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin
and run :build_facebook_ios_sdk_static_lib.sh from the shell , it will be work
If you have an Apple Developer Account, log into http://developer.apple.com/mac and then navigate to https://developer.apple.com/downloads/index.action
In there, you'll find "Command Line Tools for Xcode". Download that and you'll have the ability to build stuff easily from the command line again (which is what I suspect the "build_facebook_ios_sdk_static_lib.sh" shell script needs).
When you are integrate the Facebook SDk into your ARC enabled Iphone Application.
I suppose you had some NonARC problem(errors due to release and dealloc etc.) in Facebook Classes(headers).Due to this you are not able to create the Build.
So in my opinion you can disable the ARC for those Facebook Classes.
I think after Disabling the ARC for those Facebook Classes ,you may create build Easily.
For the Disabling the ARC you just need to follow few Steps.
1)Go to the Application Target
2)Choose Build Phase option from Build Phase.
3)Compile Sources->Set "-fno-objc-arc" Flag for all Facebook Classes.
Now Build Application
I hope it'll help you.

Resources