pods update execute with errors in iOS terminal - ios

I have next problem.
I try update pods in Podfile and get next errors in iOS terminal:
[!] Unable to satisfy the following requirements:
- `FirebaseCore` required by `Podfile`
- `FirebaseCore (= 3.6.0)` required by `Podfile.lock`
- `FirebaseCore (~> 3.6)` required by `FirebaseAnalytics (3.9.0)`
- `FirebaseCore (~> 3.6)` required by `FirebaseInstanceID (1.0.10)`
- `FirebaseCore (= 4.0.0)` required by `Firebase/Core (4.0.0)`
This is content of my Podfile:
use_frameworks!
target 'PrayerDeck' do
pod 'Firebase', '~> 4.0.0'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'FirebaseUI/Database'
pod 'Fabric'
pod 'Crashlytics'
pod 'Digits'
pod 'TwitterCore'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'IQKeyboardManagerSwift'
pod 'Firebase/Storage'
pod 'MBProgressHUD'
pod 'Google/SignIn'
pod 'Firebase/Invites'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FBSDKMessengerShareKit'
pod 'Alamofire', '~> 4.0'
pod 'TwitterKit'
pod 'SwiftyStoreKit'
pod 'GoogleSignIn'
pod 'FirebaseAnalytics'
pod 'FirebaseCore'
end
target 'PrayerDeckTests' do
end
target 'PrayerDeckUITests' do
end
I can't resolve dependencies of pods. Maybe someone can help me?
Thanks in advance.

Just delete Podfile.lock file from your project directory and try to install pod again.

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.

'db/version_edit.h' file not found because of Firebase

I'm getting the following error when trying to archive my IOS code
#include "db/version_edit.h"
'db/version_edit.h' file not found
I have the following in my Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'
target 'test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FBSDKLoginKit'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'AppAuth','~> 1.2.0'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod ‘Flurry-iOS-SDK/FlurrySDK’
pod 'ApphudSDK'
pod 'FittedSheets', '2.1.1'
pod 'SideMenu'
pod 'ColorThiefSwift', '>= 0.4.1'
pod "SwiftChart"
pod 'SDWebImage', '~> 5.0'
pod 'AQPlayer'
pod 'DeviceKit'
pod "SwiftRater"
# pod 'SwiftyStoreKit'
pod "STPopup"
pod 'Firebase/Analytics'
pod 'OptimizelySwiftSDK', '~> 3.3.2'
pod 'Firebase/DynamicLinks'
end
Here's how the leveldb headers get found in my version of the FirebaseDatabase quickstart:

Multiple commands produce error GTMSession

I would like to archive my project so I can upload it to Apple-Connect but I am facing this issue:
I also get this these messages:
I googled it and I found that this is quite a common issue, which you can usually resolve by deleting a info.plist file from Build Phase.
However there is no such a file in the regarding Build Phases.
These are my pods for GTM:
Build Phase for GTMSessionFetcher-Core:
Build Phase for GTMSessionFetcher.default-Core:
My podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'Wishlists' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Wishlists
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
#pod 'TextFieldEffects'
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'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 5.0'
pod 'KeychainAccess'
end
target 'ShareExtension' do
use_frameworks!
pod 'SwiftSoup'
pod 'URLEmbeddedView'
pod 'lottie-ios'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 5.0'
end
I really don't know much about this stuff so I don't want to delete anything by accident. Does anyone know what to do here?

Command PhaseScriptExecution failed with a nonzero exit code Xcode v12.0.1

I am using
Xcode v12.0.1
Cocoa pod v1.10.0.
This is my pod file
# Uncomment the next line to define a global platform for your project
plugin 'cocoapods-binary'
platform :ios, '8.0'
all_binary!
target 'Food' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Food
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Messaging', :binary => false
pod 'FirebaseMessaging', :binary => false
pod 'Firebase/DynamicLinks'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'EasyTipView'
pod 'Hero'
pod 'SwiftLint'
pod 'ReachabilitySwift'
pod 'Koloda'
pod 'UIColor+FlatColors'
pod 'SDWebImage'
pod 'Stripe'
pod 'GoogleSignIn'
pod 'Alamofire', '~> 4.7.3'
pod 'JGProgressHUD'
pod 'Fabric'
pod 'Crashlytics'
pod 'DTButtonMenuController'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'ActiveLabel', :binary => false
pod 'Intercom', '~> 5.4.1'
pod 'AWSS3'
pod 'GooglePlacesSearchController', :binary => false
pod 'GooglePlaces', :binary => false
pod 'GooglePlacePicker',:binary => false
pod 'GoogleMaps',:binary => false
pod 'AMPopTip'
end
All the dependencies are successfully installed and also Prebuilding process is also completed for all dependencies
Deployment target of my project and pod project is same -
Build phase:
I am getting this error when I am running app on iPhone 7 device.
What I tried :
I have removed derived data and cache and restart the Xcode and Mac.
I have also deleted all the pods podlock file, .workspace and then reinstall dependencies.
I have tried #1 and #2 many times.
After doing above points my issue is not resolved.
The pods deployment version maybe could be.
In my case when I've updated pods to the suggested target version my app starts to have a lot of warnings and errors.
But you can try with this post answers, it's a similar question.
Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

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.

Resources