-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import firebase not recognised #9821
Comments
[image: image.png]
Hi @rizafran
Thank you for the reply. I did as you requested, but no luck. The problem
persists even when I build it with cocoapods or SPM, SwiftUI and Swift
UIKit. Earlier version of the SDK 8.15.0 or 9.0.0.
I do not seem to be able to build to project, any thoughts?
Thanks
A3aan
…On Thu, 19 May 2022 at 16:52, rizafran ***@***.***> wrote:
Hi @A3anVis <https://github.com/A3anVis>, I tried reproducing the issue,
but my sample app builds successfully. Could you confirm if you have tried
the following:
- Delete your Xcode's derived data
- Open *File* > *Packages* then click *Reset package caches*
Also, make sure that you have followed the steps here
<https://github.com/firebase/firebase-ios-sdk/blob/master/SwiftPackageManager.md>
.
—
Reply to this email directly, view it on GitHub
<#9821 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3KW7HCF7AEYSXGCO256MTVKZITNANCNFSM5WME5GEA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Adriaan Visagie
***@***.***
082 4414 771
|
Hi @rizfran
Last night I completely deleted Xcode and reinstalled it overnight.
Create a new Firebase app at Firebase console.
Created a simple swiftui app
Loaded SPM
Connected
and after entering the import FirebaseCore statement got the error again.
[image: image.png]
I will really appreciate the assistance, it's tough to think about what I
should try next without breaking something else.
The only other thing that I can think of and I know I am reaching here at
straws is when I load the spm using add packages, it initially does not see
the firebase-ios-sdk but gives me the option to load it anyway, then after
that, I get it up and running using the reset Package Caches and resolve
package versions options.
Thanks Adriaan
…On Thu, 19 May 2022 at 19:53, rizafran ***@***.***> wrote:
Thanks for the update, @A3anVis <https://github.com/A3anVis>. My sample
app successfully builds even when using CocoaPods (both 8.15.0 and 9.0.0).
Could you provide an MCVE
<https://stackoverflow.com/help/minimal-reproducible-example> that
reproduces the issue?
—
Reply to this email directly, view it on GitHub
<#9821 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3KW7E4BY35YRRGFAYIUWDVKZ5ZFANCNFSM5WME5GEA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Adriaan Visagie
***@***.***
082 4414 771
|
I'm sorry to hear that, @A3anVis. It's hard for me to identify the issue since it's not reproducible on my sample project. Does the issue only happen in your Xcode 13.4? |
UPDATE: (SOLUTION) Chris Parker @ https://codecrew.codewithchris.com/ solved the issue for me. Here is what he wrote and it worked for me: "I just tried to install Firebase again and the problem still exists. I looked a bit closer to the options that had defaulted with regard to the Dependency rule and the option that had defaulted was “Branch”. I changed that to “Up to the next major Version” and the package selections that I was expecting to see did in fact appear so that’s what the problem was." I just want to say a really big thank you to Chris Parker at codewithchris, he really came through for me. THANK YOU CHRIS PARKER In my quest to better myself, are there may be someone that could explain why changing the Dependency rule worked? Adriaan |
Cheers Adriaan. Appreciate the feedback. |
Step 0: Are you in the right place?
file a GitHub issue.
with the
firebase
tag.google group.
of the above categories, reach out to
Firebase Support.
this repository, please delete this section.
[REQUIRED] Step 1: Describe your environment
Swift Package Manager
iOS
[swiftui][REQUIRED] Step 2: Xcode does not recognise import firebase
Xcode does not recognise firebase when importing firebase in the app.swift file. That course xcode error message; No such module 'Firebase'
So Build Failed
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
//
// a3aanapp1App.swift
// a3aanapp1
//
// Created by Adriaan Visagie on 2022/05/19.
//
import SwiftUI
import Firebase
@main
struct a3aanapp1App: App {
}
I'm new, tried everything I could find and will really appreciate assistance? Thanks Adriaan
The text was updated successfully, but these errors were encountered: