CocoaPods Error When Adding New Libraries - frameworks

I am making a chat application and before I started, I installed the google Firebase frameworks through cocoapods. I now realise that I would like to use another framework to handle image caching.
However, when I add the new line to the podfile and run pod install, I get an error.
Here is my podfile
And here is the error:

I think your add incomplete name of pod, Please correct it like this.
pod 'Kingfisher', '~> 3.0'
And then install pod againg
pod install

You are just missing an ' at the end of 3.0
Change the line to:
pod 'Kingfisher', '~> 3.0'
Then, try again and you should be good to go.

Related

Trouble with pod file version control

When I am installing my pod file, the terminal gives me this message:
"[!] Automatically assigning platform iOS with version 15.5 on target PirateForum because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform."
I am new to Xcode and I don't know much about the version and things like that, I feel like I am a bit messed up here.
My pod file:
target 'PirateForum' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for PirateForum
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'GoogleSignIn', '~> 5.0.0'
pod 'FirebaseFirestore'
pod 'Firebase/Storage'
end
What should do to my pod file in order to eliminate the warning?
There are a lot of targets in my pod and they all have different deployment targets, mainly 8 or 9, is that going to matter?
enter image description here
Thanks in advance!

How to properly uninstall AdMob from iOS app

I have uninstalled the AdMob SDK by commenting out the lines in the Podfile. Then I run pod update. The AdMob SDK and the utilities are removed. However, I get framework not found FBLPromises error.
I have use_frameworks! uncommitted in the Podfile.
Even if I comment out use_frameworks! And run pod update I still get the error.
Here's my Podfile.
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'My Collection' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Auburn Collection
pod 'Gemini', '~> 1.4'
# pod 'Google-Mobile-Ads-SDK', '~> 8.9'
# pod 'GoogleUtilities', '~> 7.5'
pod 'TTSegmentedControl', '~> 0.4.9'
end
Two questions:
Do I need to use frameworks for the two remaining pods?
What am I doing wrong and what can I do to fix the error?
Thanks for the help in advance.
I did a search in my app for FBLPromises. It was still in Build Settings > Linking > Other Linked Flags. I had to manually delete it along with other AdMob frameworks. This solved the problem.
It also appears that Gemini uses frameworks so I do need them.

UIApplication.shared is unavailable

I've been trying to add OneSignal to my proyect, the error appears on my other pods that I'm working with when I add target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.6.2', '< 3.0'
end to my Podfile.
I've also tried to change the Require Only App-Extension-Safe API values and still no success
Does anyone had the same problem and solved it?

No such module JSQMessagesViewController

I'm trying to import JSQMessagesViewController:
import JSQMessagesViewController
And it gives me the error 'no such module'. I've seen many people with this problem on the web but I can't find the solution. Here's my podfile:
# Uncomment this line to define a global platform for your project
platform :ios, ‘9.2’
# Uncomment this line if you're using Swift
use_frameworks!
target ‘IXODES’ do
pod 'JSQMessagesViewController'
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
end
I've tried cleaning the build, also pod deintegrate and then pod install and pod update. Nothing works and I can see the library in my project like the rest. Any help?
perhaps you tried to import the file and the file is missing by any chance,
a few things you can do.
you can clean the project from cocoapods and re-install cocoapod(this helped me onetime i got the same problem the file were missing) you can do that by
run this code on the terminal
[sudo] gem install cocoapods-deintegrate
once done
cd your file
and then run thispod deintegrate
then you're all set! and re install it
---- another solution ---
try these
1-Adding all of the .frameworks to the Projects Build Phases -> Link Binary With Libraries
2-Selecting each framework and building it. You can do this by selecting your project name next to the run arrow.
3-Cleaning the project and restarting my computer.
hope it helps

Cocoapods pod file install not working "Unable to find a specification for `RealmSwift (~> 0.97)`" swift

I'm attempting to install Realm for swift, expect terminal keeps giving me this error: Unable to find a specification for RealmSwift (~> 0.97). My pod file has been laid out exactly as they recommend. This is my pod file:
target 'AppName' do
use_frameworks!
pod 'RealmSwift', '~> 0.97'
end
target 'AppName Tests' do
use_frameworks!
pod 'RealmSwift', '~> 0.97'
end
target 'AppName UITests' do
end
target 'AppName Keyboatd' do
end
target 'AppName Keyboard' do
end
I just tried it with Realm Objective-C and it worked fine for me. That's strange.
It's possible that since the version is actually called '0.97.0', maybe it's necessary to include that extra '.0'.
Alternatively, is it completely necessary to include the version specifier in there? You can just leave it off, and you'll still get the latest version of Realm (0.97.1 was released a few days ago!)