My old project gave me this error after I change my system to apple m1 .
USE_AUTH_EMULATOR not set.
when I use "SignInWithEmailAndPasswordAsync" func, immediately I get "USE_AUTH_EMULATOR not set." message. why it can be?
using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using Firebase.Auth; public class authManager : Singleton<authManager> { public FirebaseAuth auth; public DBmanager dbManager; public bool errorCheckSignIn, errorCheckSignUp; loginMain loginMainSc; private void Start() { auth = Firebase.Auth.FirebaseAuth.DefaultInstance; dbManager = DBmanager.Instance; errorCheckSignIn = false; errorCheckSignUp = false; } public void signIn(string email, string password) { auth.SignInWithEmailAndPasswordAsync(email, password).ContinueWith(task => { if (task.IsCanceled) { Debug.LogError("canceled!"); return; } if (task.IsFaulted) { Debug.LogError("faulted!"); errorCheckSignIn = true; return; } if (task.IsCompleted) { FirebaseUser currentUser = task.Result.User; dbManager.userData.userId = currentUser.UserId; dbManager.userData.email = email; Debug.Log("Giriş yapıldı."); //PhotonNetwork.ConnectUsingSettings(); SceneManager.LoadScene("servers"); } }); } I tried to set environment variables, sent and unset Firebase Auth emulator for Mac. tried to put inside of my code;
System.Environment.SetEnvironmentVariable("FIREBASE_AUTH_EMULATOR_HOST", "127.0.0.1:9099"); but I couldn't solve the problem.
