Skip to content
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

Plugin.Firebase.iOS cannot be resolved #125

Closed
maxbartunik opened this issue Jan 29, 2023 · 7 comments
Closed

Plugin.Firebase.iOS cannot be resolved #125

maxbartunik opened this issue Jan 29, 2023 · 7 comments

Comments

@maxbartunik
Copy link

I am attempting to use Plugin.Firebase in a MAUI project. However, after install (either nuget or #65) Plugin.Firebase.iOS does not seem to exist. Android, Auth, etc. resolve correctly.

In my MAUIProgram.cs:

#if IOS
using Plugin.Firebase.iOS; //<-- does not exist
#else
using Plugin.Firebase.Android;
#endif

"The type or namespace name 'iOS' does not exist in the namespace 'Plugin.Firebase' (are you missing an assembly reference?)"

I am using VS 17.4.4 on Windows.

I would appreciate any hints as to what I am missing...

@nabilakhlaque
Copy link

Why is this closed? This is still an issue.

@FerArreguin92
Copy link

FerArreguin92 commented Mar 23, 2023

Does anyone have any news regarding this issue? I'm using net6.0 and have this issue. @TobiasBuchholz

@sej69
Copy link

sej69 commented Mar 31, 2023

I think the path should be:
using Plugin.Firebase.Bundled.Platforms.iOS;

However, even though it's showing as resolved in code (in the using statement), I get a:
The type or namespace iOS does not exist in the namespace 'Plugin.Firebase.Bundled.Platforms'

@TobiasBuchholz
Copy link
Owner

Yeah tha'ts correct, with version 2.0.0 the namespace got cleaned up and changed a bit. Please provide an example project so I can look into it. Also what OS and Visual Studio version are you using?

@K1LL3R234
Copy link

K1LL3R234 commented Apr 19, 2023

It should be this

#if IOS
using UIKit;
using Plugin.Firebase.Core.Platforms.iOS;
#else
using Plugin.Firebase.Core.Platforms.Android;
#endif

@maxbartunik
Copy link
Author

maxbartunik commented Aug 13, 2023

This issue is fixed for me - I was not able to fix the existing MAUI project, however (one or all of) following steps worked:

Things that did not help:

  • Deleted obj and bin folders
  • Removed and Re-added Plugin.Firebase through NuGet
  • Update to Plugin.Firebase 2.0.5

@TobiasBuchholz
Copy link
Owner

Since I haven't heard from you in more than 30 days, I hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that I can look into it further. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants