'FBSDKAppEvents.h' file not found when using cocoapods for facebookSDK - ios

I am trying to update FacebookSDK using cocoapods in my RN app and i keep getting error:
'FBSDKAppEvents.h' file not found.
at file FBSDKCoreKit.h
My pod file is
target 'App' do
use_frameworks!
# Pods for App
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
end

try with this pod
target 'App' do
use_frameworks!
# Pods for App
pod 'FacebookSDK'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
end

Related

iOS : duplicate symbols for architecture arm64 after pod install

I am getting error when added a new pod. My initial pod file was
#platform :ios, '9.0'
target 'xxxxxx' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TPV Plus
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'EVReflection/MoyaRxSwift'
pod 'SwifterSwift'
pod 'Crashlytics'
pod 'Fabric'
pod 'LGSideMenuController'
pod 'CCBottomRefreshControl'
pod 'MaterialComponents/ActivityIndicator'
pod 'TweeTextField'
pod 'DropDown'
pod 'DisPlayers-Audio-Visualizers'
pod 'MaterialComponents/BottomSheet'
# pod 'GooglePlacePicker'
pod 'GooglePlaces', '3.6.0'
pod 'GoogleMaps', '3.6.0'
I have commented few and added FirebaseCrashlytics. Below is the updated one
#platform :ios, '9.0'
target 'xxxx' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TPV Plus
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage'
# pod 'Firebase/Core'
# pod 'Firebase/Messaging'
pod 'EVReflection/MoyaRxSwift'
pod 'SwifterSwift'
# pod 'Crashlytics'
# pod 'Fabric'
pod 'LGSideMenuController'
pod 'CCBottomRefreshControl'
pod 'MaterialComponents/ActivityIndicator'
pod 'TweeTextField'
pod 'DropDown'
pod 'DisPlayers-Audio-Visualizers'
pod 'MaterialComponents/BottomSheet'
# pod 'GooglePlacePicker'
pod 'GooglePlaces', '3.6.0'
pod 'GoogleMaps', '3.6.0'
pod 'FirebaseCrashlytics'
end
But when I build the project getting error error build: 13 duplicate symbols for architecture arm64
In the project all other library files are duplicated as shown in picture. The project is git integrated.
How will I solve this issue.
I figured out the issue happened here. During the git commit, the pod files were committed partially to git. So I deleted the entire pod folder and kept the pod.lock file as such. After that did the pod install. So all the duplicate files were deleted and project is building successfully.

Using Pods in Share Extension fails

Inside my project I have a shareExtension and I need to install a pod for it.
I tried it like this:
target 'Wishlists' do
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Hero'
pod 'RevealingSplashView'
pod 'LBTAComponents'
pod 'lottie-ios'
pod 'SwiftEntryKit', '1.2.3'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'GoogleSignIn'
pod 'SkeletonView'
pod 'SwiftSoup'
end
target 'ShareExtension' do
pod 'SwiftSoup'
end
I simply tried adding the target and the pod I need (SwiftSoup), but my app is crushing now because the pods for my main project (Wishlists) do not work anymore. Does anyone know what's wrong with the file? Can not figure it out.. I ran pod install already.
I found the bug.. I deleted use frameworks! by accident from my podfile inside the Main Project. I added it again and also had to add it to the ShareExtension and now it is working.

Flurry IOS SDK Error - Undefined symbol: ___isPlatformVersionAtLeast

When I try to build my app, I get the following error
Showing Recent Messages
:-1: Undefined symbol: ___isPlatformVersionAtLeast
I tried cleaning the build, reinstalling the pods, but nothing works. Can someone please help?
I'm using XCode V10.3, IOS V 11.2.
Here's my pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FacebookShare'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'FolioReaderKit'
pod 'AppAuth','~> 1.2.0'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Branch'
pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod 'ApphudSDK'
pod 'SDWebImage', '~> 5.0'
pod 'AQPlayer'
pod 'DeviceKit'
pod "SwiftRater"
pod "STPopup"
pod 'iOSDropDown'
end
It looks like the Flurry SDK was built with Xcode 11.
Options:
Upgrade to Xcode 11
Ask Flurry to support Xcode 10.3
Use an old version of the Flurry SDK that was built with Xcode 10

Cannot find module error when archiving iOS project using CocoaPods

I get an error "cannot find module SwiftMessages" when archiving an iOS project. I'm using CocoaPods, Xcode V10.2, and iOS V10.1. Here's my pod file:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.1'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FacebookShare'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'FolioReaderKit'
pod 'SwiftyStoreKit'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod 'STPopup'
pod 'SendGrid-Swift'
pod 'DeviceKit'
end
Try deleting the DerivedData folder:
~/Library/Developer/Xcode/DerivedData/
There is a folder inside named ModuleCache that caches module versions. Removing it will make all the modules be recompiled, probably solving your issue.

Been getting ld: library not found for -lBolts while using xcworkspace

Hello here is my Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '8.4'
# Uncomment this line if you're using Swift
# use_frameworks!
target 'APP' do
pod 'Parse'
pod 'ParseUI'
pod 'Stripe'
pod 'JVFloatLabeledTextField'
pod 'Fabric'
pod 'RKDropdownAlert'
pod 'LGAlertView'
pod 'Crashlytics'
pod 'CHTCollectionViewWaterfallLayout'
pod 'TwitterKit'
pod 'CardIO'
pod 'Reachability'
pod 'DZNPhotoPickerController/Editor'
pod 'FBSDKCoreKit'
pod 'MGInstagram'
pod 'FBSDKShareKit'
pod 'TOCropViewController'
end
target 'APPTests' do
end
I'm receiving the error
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried clean and build. no luck. I'm also using the xcworkspace
and I've also deintegrated pods many times and did pod install again. still no luck.

Resources