-
Notifications
You must be signed in to change notification settings - Fork 485
Support SPM #886
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
Comments
I've done some prototyping in https://github.com/firebase/FirebaseUI-iOS/tree/pb-spm. Since SPM does not have a concept of subspecs, there will need to be a strategy about how to map those to SPM and what the implications will be to imports. |
@paulb777 any estimate on SPM support since firebase SDK already offers one? |
Hello, Any update on this? |
Hello! |
I've managed to install FirebaseUI SPM using the pb-spm branch. I needed to do a clean build, and replace imports of Firebase/FirebaseUI with imports of FirebaseStorage, FirebaseFunctions, AuthUI, EmailUI, etc, but it builds OK. However, when I run the code below it fails with
I'm guessing FUIAuthPickerViewController.nib isn't appearing in the resource dependencies. Is there a workaround or fix for this?
|
I fixed the initial NIB error by explicitly specifying the FirebaseUI bundles in the delegate, but then it crashes trying to load the FUIAuthTableViewCell NIB, and I can't find a way to specify the bundle for that class. In any case, the strings in the UI are wrong ("AuthPickerTitle", "SignInWithEmail") and the email icon is missing. So I'm still looking for a way forward.
|
@paulb777 Any update on when this might move from prototype to main? Would love to get some of the latest updates and fixes that have been pushed out! Would also love to be able to use this for other things besides Edit: Not only would I appreciate being able to use SPM, but SPM is also the only way I can do dependency management now. A lot of problems with Cocoapods on M1 Macbooks (even running on Rosetta). This would mean the world and allow me to once again use this wonderful library! |
Nice to see I'm not the only one waiting for this.. |
Hey all, additional progress has been made on the pb-spm branch. Please test out the new changes and let me know if you run into any issues. |
@morganchen12 thank you for making those updates! So close now, seeing a similar but different issue to what @mattkwan was seeing.
Whatever you did to fix Matt's issue worked because I was previously seeing that issue as well when commenting out a bunch of code that was using the previously unsupported modules. Do you think you could apply the same fix from |
@morganchen12 scratch that. I actually tried to start an AuthVC up without phone auth in the list of providers and got the same error as Matt:
|
@nikitaame the missing bundle resources should be fixed now. |
@morganchen12 everything looks good and is running smoothly minus one small bug. Think some localization file might still not be linked? Seeing a Otherwise, thank you for your amazing work! I am finally able to once again work with Firebase + FirebaseUI thanks to you! Will this be out in the next release? |
Facebook Auth and Google Auth both have library dependencies that do not support SwiftPM (Facebook supports SwiftPM only for its Swift SDKs, but we depend on their ObjC SDKs since FirebaseUI is an ObjC project). Unfortunately, we're blocked on those libraries. I'll take a look at the localization files bug soon. |
Any update on the localization bug? This still seems to be an issue. |
The localization resources bug should now be fixed. |
So sorry - I'm missing something basic on understanding which URL to use to test this. I've tried: |
See Paul's comment in your other issue: firebase/firebase-ios-sdk#7824 (comment) |
@thecodeguyexamples seems to be working fine for me. Did you try the usual reset of SPM cache, clean derived data, etc dance? Thanks for fixing this @morganchen12! |
@morganchen12 do you expect Facebook Auth and Google Auth to support SwiftPM in the future? |
Facebook Auth already supports SPM, though only for their Swift module, which we cannot use since FirebaseUI is an ObjC project. It's unclear if they'll add SPM support for their ObjC libraries as well. If ObjC usage of the Facebook Auth FirebaseUI module is low, we could rewrite it in Swift easily since it's very small. Google Auth will add SPM support in the future. |
SPM support has now landed in master, and will be released after the Firebase 8 major version update. |
W00t! Thanks so much!
--
Prof. John Gallaugher - @gallaugher
Boston College
YouTube: https://youtube.com/profgallaugher
Learn to lead in tech: http://gallaugher.com/book
Learn to build apps: http://gallaugher.com/swift/
… On Apr 27, 2021, at 1:56 PM, Morgan Chen ***@***.***> wrote:
SPM support has now landed in master, and will be released after the Firebase 8 major version update.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Tixamaster It worked for me when I made the following change: nipapadak@11db727 |
@nipapadak Thanks a lot that solved this problem! Now I get the following (did the FUI names also change?): |
@Tixamaster the module names changed, so now you need to import each auth provider module separately. import FirebaseEmailAuthUI
// ... |
Thanks! But I still get the compiler error shown above :/ |
Header import errors should be fixed in bb544f8. |
On the
Doesn't that mean that they have SPM support for ObjC libraries? |
When my app starts, I get the following error message:
Thread 1: "Could not load NIB in bundle: 'NSBundle <Path> (loaded)' with
name 'FUIAuthPickerViewController'"
Does anyone know how to fix this? For reference, I am using
commit bb544f8
…On Tue, May 4, 2021 at 2:08 AM Anders Tidbeck ***@***.***> wrote:
Facebook Auth already supports SPM, though only for their Swift module,
which we cannot use since FirebaseUI is an ObjC project. It's unclear if
they'll add SPM support for their ObjC libraries as well. If ObjC usage of
the Facebook Auth FirebaseUI module is low, we could rewrite it in Swift
easily since it's very small.
Google Auth will add SPM support in the future.
On the facebook-ios-sdk README under Swift Package Manager
<https://github.com/facebook/facebook-ios-sdk#swift-package-manager-available-xcode-112-and-forward>
it says:
If you explicitly DO NOT want to include Swift, import FBSDKCoreKit
FBSDKLoginKit and FBSDKShareKit
Doesn't that mean that they have SPM support for ObjC libraries?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#886 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMHEO7L72TTPU6LGYU37KKTTL6MNLANCNFSM4PLC3R7Q>
.
|
@thecodeguyexamples can you share the path in the error? |
The path is
/Users/username/Library/Developer/CoreSimulator/Devices/754868BC-5DD0-45EB-AF8E-C32BC117E1C3/data/Containers/Bundle/Application/46A6A277-27C0-4735-8598-992BA32D4455/eLibrarian.app
…On Tue, May 4, 2021 at 4:30 PM Morgan Chen ***@***.***> wrote:
@thecodeguyexamples <https://github.com/thecodeguyexamples> can you share
the path in the error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#886 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMHEO7JYA2QOQATE5PUK24LTMBRQNANCNFSM4PLC3R7Q>
.
|
@thecodeguyexamples Thanks, should be fixed in 4201323. |
Alright, I will test this out when I get the chance. |
Thy it works now. But I don't get access to the name of the user when using Apple Sign In. |
@Tixamaster that's a regression unrelated to SPM. |
Okay thanks. Can you maybe push me to a hint where I can get the name? As I could only find a closed issue with the info that it should have been implemented. |
@Tixamaster please file a separate issue. |
Hey @gallaugher, you should be using the |
I got an error similar to this.
On Fri, May 14, 2021 at 3:19 PM Gallaugher ***@***.***> wrote:
Just tried rolling back Firebase to 7.9 and installing with SPM, then
tried AuthUI and got this error:
[image: AuthUI problem]
<https://user-images.githubusercontent.com/20801687/118324473-1a28a280-b4d0-11eb-8d8b-8d22bca0a435.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#886 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMHEO7NFLCWDQKTCAL37XATTNWAVBANCNFSM4PLC3R7Q>
.
--
Sincerely,
Ian Haas
…Sent from my iPad
|
SPM support on master is now updated for Firebase 8. Please clear your package caches and try reinstalling. Also added Facebook login support. |
This has now been released. |
From this thread, firebase/firebase-ios-sdk#3136, Firebase is going to be supporting SPM in the coming near future. Would your team consider doing so as well?
Thanks!
The text was updated successfully, but these errors were encountered: