i don't know if someone have the same problem at the moment, but i'm trying to import Firebase in my app but it only shows "No such module for Firebase". Could anyone please help me?
This is the error i get every time.
EDIT: (Sorry for the noobie errors), this is the code in the Podfile:
target 'CosplaCentral' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for CosplaCentral
target 'CosplaCentralTests' do
inherit! :search_paths
# Pods for testing
end
target 'CosplaCentralUITests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase'
end
end
Update your pod file with the code below, then in Terminal direct to your project file and do pod install (make sure Xcode is closed when doing so) and then load up your project again then retype import Firebase
platform :ios, '8.0'
target 'CosplaCentral' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for LT Sounds
pod 'Firebase'
pod 'Firebase/Auth'
end
Related
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!
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.
I have a newly created project, which I used
pod init
on to initialize cocoa pods
Im adding a single pod (TCPickerView ) to it and trying to use it but getting errors
podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Symphony' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'TCPickerView'
# Pods for Symphony
target 'SymphonyTests' do
inherit! :search_paths
# Pods for testing
end
target 'SymphonyUITests' do
inherit! :search_paths
# Pods for testing
end
end
I do
pods install
then open the Symphony.xcworkspace file and build
Then I add the example code from the TCPickerView site (see second screenshot which shows code and errors).
screenshot showing the pods library is included in the Symphony project
screenshot with code and error
There is no problem with your podfile, I tried it works, I guess you are missing import TCPickerView
It goes right after import UIKit in class ViewController
Can you update your pod file
platform :ios, '9.0'
use_frameworks!
target 'Symphony' do
pod 'TCPickerView'
target 'SymphonyTests' do
inherit! :search_paths
# Pods for testing
end
target 'SymphonyUITests' do
inherit! :search_paths
# Pods for testing
end
end
and try like this and reinstall pods again : pod install
Usage: import TCPickerView
I'm trying to add Google Places SDK to my xcode project but keep getting the error
Unable to find a specification for `GooglePlacePicker`
This is my pod file
# Uncomment the next line to define a global platform for your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'Restaurant' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Restaurant
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'GoogleMaps'
target 'RestaurantTests' do
inherit! :search_paths
# Pods for testing
end
target 'RestaurantUITests' do
inherit! :search_paths
# Pods for testing
end
end
The funny thing is, if I remove 'GooglePlaces' and 'GooglePlacePicker' it installs the 'GoogleMaps' perfectly fine.
I am trying to add a module (SwiftyJSON) in my app but getting error. I followed https://www.raywenderlich.com/97014/use-cocoapods-with-swift tutorial for installing cocoapod on my Mac OS and it got installed successfully. I also got the module installed successfully. However, when I am trying to load the module in my swift file using the import SwiftyJSON statement I am getting error that says No such module SwiftyJSON.
Documentation for SwiftyJSON: https://github.com/SwiftyJSON/SwiftyJSON#integration
Podfile
platform :ios, '9.0'
target 'ApplePaySwag' do
use_frameworks!
# Pods for ApplePaySwag
pod 'SwiftyJSON'
pod 'AEXML'
target 'ApplePaySwagTests' do
inherit! :search_paths
# Pods for testing
end
end
Am I missing anything?
1) try putting use_frameworks! outside of target (under platform)
2) pod install
3) if import doesn't work try cleaning application (cmd + shift + k)
4) also clean derived data from the project -> xcode -> window -> projects -> derived data (delete)
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'TestingModules' do
use_frameworks!
# Pods for TestingModules
pod 'SwiftyJSON'
pod 'AEXML'
target 'TestingModulesTests' do
inherit! :search_paths
# Pods for testing
end
target 'TestingModulesUITests' do
inherit! :search_paths
# Pods for testing
end
end
Add this in your podfile
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
def common_pods
end
target 'ApplePaySwag' do
common_pods
pod 'SwiftyJSON'
pod 'AEXML'
end
target 'ApplePaySwagTests' do
common_pods
end
and Run pod install,
then clean your project..
after that close the ApplePaySwag.xcodeproj and open ApplePaySwag.xcworkspace