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.
Related
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.
I am doing my own test app as part of my learning process in iOS development (using swift 5 on Xcode 11.0). I want to add login with Facebook on my login page but I keep getting No such module 'FacebookCore' when importing the library.
I followed the instructions on developer.facebook and tried to implement the SDK using cocoaPods and here is my Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'TestApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for TestApp
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
target 'TestAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'TestAppUITests' do
# Pods for testing
end
end
After executing pod install and adding the data in my info.plist as instructed by Facebook, I can clearly see that the framework has been linked in the Link Binary With Libraries section
But still, I can't seem to import FacebookCore nor FacebookLogin.
PS: I tried several solutions like:
1- Running the .xcworkspace instead of .xcodeproj
2- Building the project even with the error being displayed (some said it would go away)
But none of them worked.
I suspect that the problem is in my Framework search path but why would it be wrong in the first place? so I may be wrong, here's a screenshot to my search path anyway:
So it turned out that I have to import FBSDKCoreKit instead of FacebookCore which was not mentioned in facebook's documentation. And it should be imported strictly using the .xcworkspace file which was also not mentioned in the documentation.
Use FBSDKCoreKit instead of FacebookCore
This are the correct pods
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
and your imports should be
import FBSDKCoreKit
import FBSDKLoginKit
in previous version there was FacebookCoore as wrapper for the FBSDKCoreKit classes. It looks like Facebook has removed this since v5.x.
The following should be your entries in Podfile
pod 'FacebookCore'
pod 'FacebookLogin'
and your imports should be
import FacebookCore
import FacebookLogin
After installing CSVImporter I still can't use it. When I import it at the beginning of some file with import CSVImporter, it says No such module 'CSVImporter' What could be wrong?
Xcode 9.0.1
platform :ios, '11.0'
target 'worDecks' do
use_frameworks!
pod 'CSVImporter', '~> 1.7'
end
edit
Sorry, had to delete it to figure out what the problem was.
Even if I just install the package and build the project, it throws a lot of errors.
The package is listed in the list of frameworks
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.
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