What iOS framework contains CGImageRelease?
The documentation says it is in ApplicationFramework, but I thought that was an OSX framework.
It's in QuartzCore. #import <QuartzCore/QuartzCore.h> Was just about to ask when I figured it out.
Related
I need to copy said code
#import <FBSDKCoreKit/FBSDKCoreKit.h>
into my app delegate.m file as per Facebook's instructions.
However, I am using Swift not Objective-C and do I don't have .h and .m files for my app delegate (or anything else for that matter), is there any other way in which to import this into my app delegate.swift file?
No need to do that.
Drag the corresponding FBSDKCoreKit framework file in your Xcode project, then just do
import FBSDKCoreKit
in the Swift files.
No need for anything else.
The way you were referring to was for previous versions of the non-Swift SDK.
Reference: https://developers.facebook.com/docs/ios/getting-started/advanced#swift
I am trying to add the Facebook SDK to my iOS 9.0 Swift app in Xcode. I did the install according to the FB-dev instructions. However, when I add the header to my AppDelegate.m file import FBSDKCoreKit I keep getting a message saying "No such module 'FBSDKCoreKit'" error .
Based on what I read elsewhere
I have already cleaned the build and re-installed Xcode and updated
my OS X
I have double checked the plist and the framework files FB lists in
the instructions, but nothing has seemed missing.
I have set the "Allow Non-modular Includes in Framework modules"
setting to YES in Build settings.
Nothing seems to work. I do not know where to go from here and have done hours of research trying to find the solution.
When you are importing the frameworks, Make sure you have selected "Copy if needed" . Version after Xcode 6.3 seem to be giving issues if this part is NOT ticked.
I solved this by deleting the Framework and adding it again by right click on the project->Add files..., then choose the framework and SELECT the option to Copy files if needed. It's not what Facebook recommends, but it worked!
I'm using v4.6 of FBSDK and Xcode 7 beta 6.
Hope it helps you and everyone else who's facing the same problem :)
With CocoaPods, swift 2.1, and iOS 9, I tried adding it to the bridge header and it works fine, for example:
#ifndef MY_Bridge_Header_h
#define MY_Bridge_Header_h
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
// ... other imports
#endif /* MY_Bridge_Header_h */
I had errors following alongside the AppCoda tutorial which is not fully up to date. I recommend following Facebooks own instructions. The issue for me was that I had to add the frameworks to my project and then add sdk search path. After that I could import without an error.
i use the latest version of SDK for iphone integration but it give me this error.
Remove the AdMob Framework from your project, clean your project, and import the AdMob Framework again.
and Download the Framework here enter link description here
#import <GoogleMobileAds/GADBannerView.h>
#import <GoogleMobileAds/GADRequest.h>
As it's now a Framework. You have to include it like this : #import GoogleMobileAds;
I've done all is mentioned here (https://www.parse.com/docs/ios_guide#fbusers/iOS) for implement in iOS the Facebook Login.
The problem is that i have an compile error "Use of unresolved identifier PFFacebookUtils"
near che line
PFFacebookUtils.initializeFacebook()
in AppDelegate. I've correctly imported the Parse and Facebook Framework into my project.
Are there some bug knowed in Xcode 6 Beta?
Parse docs doesn't mention this yet: After downloading the Parse iOS SDK, You should include the ParseFacebookUtils.framework into your project, then import it in each file you want to use it, like you did for the Parse.framework itself:
#import <Parse/Parse.h>// This use to be enough to use Facebook utilities
#import <ParseFacebookUtils/PFFacebookUtils.h>// But now we should import this framework as well to use Facebook utilitis
Parse team has separated the Facebook related classes from Parse API, hence a ParseFacebookUtils.framework
You may need to
import ParseFacebookUtils
in your AppDelegate
If you want to use PFFacebookUtils or/and PFLogInViewController with swift, you have to do this:
For not V4 version:
#import <ParseFacebookUtils/PFFacebookUtils.h>in bridging header and then import ParseFacebookUtils in swift file. And call PFFacebookUtils.initializeFacebook() somewhere, of course best place for this is application didFinishLaunchingWithOptions.
For V4 version:
#import <ParseFacebookUtilsV4/PFFacebookUtils.h> in bridging header and import ParseFacebookUtilsV4 in swift file. And call PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions) in application didFinishLaunchingWithOptions.
Of course you should have set your bridging header correctly and import frameworks.
Resolved! #import in bridging header
After the update to Parse/FacebookUtils, to import you do #import <Parse/PFFacebookUtils.h>
I am trying to integrate Facebook sdk in my iOS app. I am using the Facebook reference docs and according to it, I am sharing using FBDialogs but the editor returns error "use of undeclared identifier FBDialogs". I have imported the Facebook sdk, other necessary frameworks, and other obvious things but still not getting it. Any help is appreciated.
Not only do you need to add the Framework to the project, but you need to also ensure that the compiler can see the header files.
Add this to the top of the file where you are getting the compiler error.
#import "FBDialogs.h"
You shouldn't have to explicitly import FBDialogs. But you absolutely do need to:
#import <FacebookSDK/FacebookSDK.h>
in the .h files of any and all of classes you've created to manage / access your FB connection.
You should check out the SDK version used and see in this change log if it is available to the version you are using.
Hope it helps!