I am a beginner in Xcode, and I have just installed the Firebase framework with CocoaPods. When I import the framework, I want to add the line "FirebaseApp.configure()" but when I add it, Xcode gives me an error : "Cannot find ‘FirebaseApp’ in scope". How can I solve this error?
I already tried to re-install the framework !
enter image description here
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
I don't know if this helps but when I tried to launch the project, another error appeared: "Could not build Objective-C module 'Firebase'"... Maybe it has something to do with...?
Image of code : https://i.stack.imgur.com/bgkSz.png
I believe you have opened the wrong project. Things you can do to verify is to
Check if the pods have been added. For this check the root directory in
Finder
and see if you have a folder calledPods
, or check if a folder namedPods
can be seen in your project within XCode. If not open terminal go to your project directory and typepod install
After you have verified that the pods have been installed, open the
KeKonMange.xcworkspace
instead of theKeKonMange.xcodeproj
from your finder directory (.xcworkspace
is the white icon, while.xcodeproj
is the blue one. example can be found below)If you can’t resolve your problem, comment below