FBSDKShareKit.h' file not found xcode unity - xcode

im trying to build unity project to ios device
everything was working good before i installed FaceBookSDK
now i always get this error:
i was trying some solutions over the internet including this
none of them helped me
unity 2020.3.18f1
FacebookSDK 11.0.0
any help?

this is an issue occurs when using Facebook SDK above 11.1.0,
all you have to do is downgrade the SDK to 11.1.0,
Open the pod file as notepad or on Xcode and change the pod Script for Facebook SDK
replace this
pod 'FBSDKCoreKit', '~> 11.0'
pod 'FBSDKCoreKit_Basics', '~> 11.0'
pod 'FBSDKGamingServicesKit', '~> 11.0'
pod 'FBSDKLoginKit', '~> 11.0'
pod 'FBSDKShareKit', '~> 11.0'
to this
pod 'FBSDKCoreKit', '~> 11.1.0'
pod 'FBSDKCoreKit_Basics', '~> 11.1.0'
pod 'FBSDKGamingServicesKit', '~> 11.1.0'
pod 'FBSDKLoginKit', '~> 11.1.0'
pod 'FBSDKShareKit', '~> 11.1.0'

finally i fixed it using this
the solution:
1- Open terminal and open project output folder (cd [folder path])
2- I run the code "pod install", it created the xcworkscape file.
3- I open the xcworkspace file in xcode and it works without error on device

Related

Pod install taking a very long time

I'm running pod install on terminal for the first time and it's been taking a very long time (longer than 20 minutes). When i ran pod install --verbose it's getting stuck on this. Not sure if it should be taking this long, any ideas on how to fix it? enter image description here
// Podfile
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
target 'UberEATS' do
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'SwiftyJSON', '~> 4.0'
pod 'Alamofire', '~> 4.7'
pod 'SDWebImage', '~> 4.0'
pod 'Fabric'
pod 'Crashlytics'
end
Delete source 'https://github.com/CocoaPods/Specs.git' from the Podfile.
Recent versions of CocoaPods use a much faster cdn as the default source location.

New Mapbox iOS SDK generating problem, When I install any pod they show problem

I'm using Mapbox SDK, and when installing new pods, It is pod will be showing errors. I change pods and it showing error again and again. I was using these pods, pod 'Mapbox-iOS-SDK', '~> 5.1' pod 'MapboxNavigation', '~> 0.35.0' pod 'MapboxGeocoder.swift', '~> 0.11'
I updated pods too pod 'Mapbox-iOS-SDK', '~> 5.3' pod 'MapboxNavigation', '~> 0.37.0' pod 'MapboxGeocoder.swift', '~> 0.11'
It showing post again and again.
I just removed last two pods. As they generate error.

Swift cocoapod install framework (Alamofire) occur Syntax error in xcode

I have some problem in installing some external framework. Therefore, I try it in a blank project but the error are the same and I am not sure where i did wrong.error image
It is a little uncommon. It seems like I did install a wrong version of framework as in it appear 40+ error in code syntax.
Also, the error are from Alamofire,AmazonS3RequestManager and so on.
It is my podfile and I just put pod install in the target file directory
source 'https://github.com/CocoaPods/Specs.git'
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'test' do
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'AlamofireImage', '~> 2.0'
pod 'Firebase', '>= 2.4.3'
pod 'SwiftValidator', '3.0.1'
pod 'AmazonS3RequestManager', '~> 0.8'
pod 'MBProgressHUD', '~> 0.9.2'
end
The code in your screenshot is for Swift 2.2, so you have to update Xcode to the latest version, Xcode 7.3. Your version is too old.

compilation error: cocoapods xcode test project compilation error, how to remove test project cleanly

The question is how to cleanly remove Test in cocoapods PodFile ?
I'ved just recently updated cocoapods 1.0.0 to my project
I ran "pod init" to generate a sample PodFile then put in my pods.
Whole bunch of error generated by the xcode test project ProjectNameTests
http://imgur.com/fUOF18i
How can I cleanly remove the tests ? Even if comment it out there is other problems like Bridging-Header.h cannot find dependent header.
In my current PodFile for 1.0.0:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'ProjectName' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ProjectName
pod 'FBSDKCoreKit', '~> 4.9'
pod 'FBSDKLoginKit', '~> 4.9'
pod 'FBSDKShareKit', '~> 4.9'
pod 'SwiftyJSON', '~> 2.3.1'
pod 'Alamofire', '~> 3.0'
pod 'Google/Analytics', '~> 1.0.0'
pod 'Fabric'
pod 'Crashlytics'
pod 'AWSS3'
target 'ProjectNameTests' do
inherit! :search_paths
# Pods for testing
end
end
my previous PodFile, no mention for target project or test:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'FBSDKCoreKit', '~> 4.9'
pod 'FBSDKLoginKit', '~> 4.9'
pod 'FBSDKShareKit', '~> 4.9'
pod 'SwiftyJSON', '~> 2.3.1'
pod 'Alamofire', '~> 3.0'
pod 'Google/Analytics', '~> 1.0.0'
pod 'Fabric'
pod 'Crashlytics'
pod 'AWSS3'
The type of errors you'r defining are not because you have a target to the tests in your Podfile. inherit! :search_paths indicates that this target inherits the pods from the target above it.
One thing you might be getting wrong is that the "target 'ProjectName' do" is not regarding your project name but an actual target of your project.
A target can have a different name then your project.
You can also check the official migration guide Migration Guide.

library not found for -lAFNetworking

I have a project on Bitbucket that builds fine on one machine. I cloned it on another machine, did a pod install, everything installed fine. I open the .xcworkspace and it won't build because of the error in the title of this post.
When the project is deleted from the original machine and cloned there (pods installed, etc.) it builds fine.
I don't don't know what's different about the other machine or what information I can provide here to ask this question.
Here's the contents of my podfile:
# Uncomment this line to define a global platform for your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.0"
link_with 'Extender', 'DefinitiveExtender'
pod 'zipzap', '~> 7.0'
pod 'SQKPieProgressView', '~> 1.0'
pod 'AFNetworking', '~> 2.3'
pod 'MBProgressHUD', '~> 0.9'
pod 'Reachability', '~> 3.1'
pod 'HockeySDK', '~> 3.5.7'
pod 'Parse', '~> 1.4'
I ran into the same issue. In my case what was happening was that for some reason libPods wasn't being linked.
Click on the project, go to General, click on your target and then scroll down to Linked Frameworks and Libraries. There I made sure to include libPods.a and then the project built fine. Hope that helps.

Resources