Issue installing pod written in Swift with CocoaPods - swift

I'm trying to import the XLPagerTabStrip podfile to my project but I keep getting the error of:
Analyzing dependencies
Downloading dependencies
Using Stripe (6.0.1)
Using XLPagerTabStrip (4.0.1)
[!] Pods written in Swift can only be integrated as frameworks;
add `use_frameworks!` to your Podfile or target to opt into using it.
The Swift Pod being used is: XLPagerTabStrip`
Could you help me fix this issue? Here is my podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
pod 'Stripe'
pod 'XLPagerTabStrip'
target 'Flokk' do
end
target 'FlokkTests' do
end

add use_frameworks! to the end of your Podfile like it tells you to

Related

No such module GooglePlaces

I am trying to install the GooglePlaces pod so that I can use the autocomplete feature, however, after successfully installing it, xcode keeps telling me that no module is found.
It seems to be a problem with the GooglePlaces pod, as the others aren't throwing this error. However, we can see that in my pods folder, it is installed.
Here is my Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'TestApp5' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TestApp5
pod 'FirebaseAuth'
pod 'GooglePlaces', '7.3.0'
end
I have tried uninstalling Cocoapods, changing the GooglePlaces version, changing the platform version, and making a whole new Xcode project to test this.

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.

Can't import FirebaseStorage

I'm trying to use FirebaseStorage and can't import it in my project.
My podfile looks like this:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyProject' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'Firebase/Storage'
pod 'Firebase/Core'
//A bunch more here
end
However, when I try to import FirebaseStorage, I get an error saying the module isn't found. I've tried updating my podfile and rebuilding my project, but nothing's working. Also, all of the other Firebase services that are in my podfile can be imported without an issue.
How can I import the Firebase Storage module? Thanks!
Add platform :ios, '10.0' to the Podfile. Recent versions of Firebase require at least iOS 10.
If there are still problems after that, the Podfile.lock should provide clues.

Linker Issue Xcode Cocoapods

Installed three pods but for some reason can't get it to work
I tried reinstalling, updating, deintegrating but nothing does it.
I get the following errors. Tried creating the folders manually but the Linker Error remains always
Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Clima' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Clima
pod 'SwiftyJSON'
pod 'Alamofire'
pod 'SVProgressHUD'
end
The frameworks aren't being built. Just open {Yourproject}.xcworkspace generated after adding cocoapods instead of {Yourproject}.xcodeproj - that should help.

Swift - cocoapod circular slider

I am trying to use CircularSlider in my app.
I found the following two module
https://github.com/taglia3/CircularSlider
https://cocoapods.org/pods/HGCircularSlider
This is what I did
$pod init
and this is my pod file
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Dr.FOOD' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Dr.FOOD
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'HGCircularSlider', '~> 1.0.3'
pod 'CircularSlider'
end
and then, what I did
$ pod install
Analyzing dependencies
Downloading dependencies
Using CircularSlider (1.1.2)
Using Firebase (3.11.0)
Using FirebaseAnalytics (3.6.0)
Using FirebaseCore (3.4.6)
Using FirebaseDatabase (3.1.1)
Using FirebaseInstanceID (1.0.8)
Using GoogleInterchangeUtilities (1.2.2)
Using GoogleSymbolUtilities (1.1.2)
Using GoogleToolboxForMac (2.1.1)
Using HGCircularSlider (1.0.3)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Dr.FOOD.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 5 dependencies from the Podfile and 10 total pods installed.
I'm using the .xcworkspace but it still says
"No such module 'HGCircularSlider'" in my code.
Did I do anything wrong?
Here is what I do when I add a new pod, in addition to what you did already.
Open the workspace file, go to the project settings page:
Scroll down and you'll see this:
Click on the + button and add all the frameworks you wish.
Command + B to build the project.
Now import the modules