Facebook for Unity SDK (iOS) - FBSDKCoreKit-Swift.h not found - ios

We're developing a game with Unity 2019.4.28f1 (XCode 12.4).
I've upgraded Facebook to the latest sdk (11.0.0).
Trying to build iOS, XCode gives me a strange error:
"Swift Compiler error -- Header 'FBSDKCoreKit-Swift.h' not found
Here's a screen.
Have you ever seen this before?
I have tried to search about it but this module is not mentioned anywhere.
Thanks for help.

search in FBSDKLoginKit.framework, can you find the header file FBSDKLoginKit-Swift.h?

Related

Twitter Kit Integration issues in iOS app

I want to integrate twitter in iOS Application, I tried using Fabric as well as by using Cocoa pod but getting same error every time.
Following are the Errors:
Could Not build TwitterCore
Cocoa/Cocoa.h file not found
Could Not build Module TwitterKit
I searched and tried some solutions as per given below links but nothing work for me. I am using xcode 6.4, ios 8.4.
Please give me any correct solution.
I went through below link
Twitter integration in iOS app
but didnt help
TwitterKit issue comming
https://twittercommunity.com/t/could-not-build-objective-c-module-twitterkit/49551
Cocoa/Cocoa.h file not found
Cocoa/Cocoa.h file not found
Go to project settings --> Build settings
Click on All tab and search "allow non"
then set YES to Allow Non-modular Includes in Framework option

<FacebookSDK/FacebookSDK.h> not found in Parse

Hello I am trying to include Parse into my iOS application but unfortunately there were a lot changes made in iOS 9.
I have downloaded the Parse starter project and have Parse up and running and have also included the Facebook SDK in my project, but my problem I have is in my "PFFacebookUtils.h". It keeps giving me and error saying that " file not found".
These are all the libraries I have. Under ParseFacebookUtils.framework there is a file named PFFacebookUtils.h, I get that file not found" in there. Does anyone have any experience with using Facebook and Parse for iOS 9? Thanks for help!
remove the ParseFacebookUtils.framework from your project :)
Another(better) way is to use cocoapods and you'll forget about such problems.

Facebook SDK on Unity 5 on iOS

I have been having trouble getting the latest Facebook SDK 6.2.1 to function with Unity 5.0.0f4 in both my project and an empty one.
Here is what I do:-
Create a blank project
import Facebook SDK
Set App ID and Name in editor settings
Add sample scene to build settings
Build Xcode Project
Open in Xcode
Disable ARC in settings
Remove extra #endif when xcode complains about it
Build and Run game on iOS device
The error I end up with is in the following link:-
dl.dropboxusercontent.com/u/13490919/FacebookiOSProb/Screenshot%202015-03-12%2014.53.29.png
The error I get is "EXC_BAD_ACCESS (code=1)". I'm not much of an xcode/iOS guy so this confuses me a tone load. This error does not occur if facebook isn't present. Has anyone got any idea how to get around this? Surely i'm not the only one with this issue. All I want to do is get an access token from facebook. If need be, I don't mind using a simple webview or something similar.
Any help on this would be much appreciated. I would give free hugs to but ya know.
Thanks
Ive managed to solve the issue. As posted by someone else on unity forums here, you need to mark the option "iOS" as platform for plugin and adding "-fno-objc-arc" as compile flag in the following file: Assets/Facebook/Editor/iOS/FbUnityInterface.mm
This works with the latest versions of Unity 5.0.1f and Facebook SDK 6.2.1 as of this post.
Facebook SDK for Unity Downloads
Note: Only Unity 4 is supported at this time
That is why it's not working. I don't know when Facebook will launch their sdk for Unity 5.

Admob SDK - iOS -File not found

I have installed Google Analytics and Google AdMob SDK in my iOS project using Cocoapods. I have implemented both the functionalities in my app and everything looked okay for a week. Then suddenly, when I compiled the app, I received this error message:
"GADBannerView.h file not found". in "#import GADBannerView.h"
But I was able to see the header GADBannerView.h in my project under Pods target.
I did some research and found this error can happen due to SEARCH PATH in BUILD SETTINGS. Many faced similar issues when they moved the project from one machine to another machine but I didn't do that. So, instead of investigating on SEARCH PATH, I removed my GADBanner implementation from my project and commented line #import GADBannerView.h and my project compiled successfully.
I don't quite understand why the Google Analytics SDK is getting compiled successfully while AdMob is throwing a compilation error. I even did a pod update and still received the same error.
The SEARCH PATHS in my target is $(inherited) and ALWAYS SEARCH USER PATH is set to No
Starting at AdMob 7.0, AdMob has made the SDK a framework. Import it like so:
#import <GoogleMobileAds/GoogleMobileAds.h>
Go to: --> Build Settings --> Apple LLVM 7.1 - Language - Modules --> Enable Modules (C and Objective-C) --> set it to Yes.
According to the Google Ads Developer Blog we need to use:
#import GoogleMobileAds;
If you have a problem with the #import syntax you need to modify your project build settings. Search for Modules and set Enable Modules to YES.
First one is issue of latest SDK will not be used for Admob.
second is issue of Xcode 7.0 and you can try in Xcode xcode below 7 for till date,

Error using Google Maps in IOS?

I am creating a mapView in iOs, using Google Maps Api.
I did it by referring this link
Document
And I am getting few errors like
Undefined symbols for architecture i386:
"_objc_setProperty_nonatomic", referenced from:
-[GMSx_PBGeneratedMessage setExtensionRegistry:] in GoogleMaps(ProtocolBuffers.o)
I am fed up with this, can anybody kindly help with this.
I think Kalpesh was on the right track with his comment. Your screenshot shows you as running with the iOS 5.1 simulator, but the current version of the maps iOS SDK requires iOS 6.0 or newer.
My answer which Kalpesh linked to explains this in more detail:
google map on iphone exception
I noticed you commented on that other answer though, so which version of the SDK are you using?
The errors you see are linker errors telling you that the symbols are not available for the simulator architecture (i386).
You are not linking a simulator-compatible version of the library (or perhaps you missed the step of adding the library to your project to be linked).
I don't know the Google Maps SDK, but it is possible that it doesn't have a simulator-compatible binary within the library file.

Resources