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

Project initialization error on IOS #573

Closed
kpk-i710 opened this issue Jul 28, 2023 · 1 comment
Closed

Project initialization error on IOS #573

kpk-i710 opened this issue Jul 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kpk-i710
Copy link

kpk-i710 commented Jul 28, 2023

Describe the bug
I call before runApp
void main() async {
await WidgetsFlutterBinding.ensureInitialized();
await Supabase.initialize(
url: "https://mysite.supabase.co",
anonKey: "key...",
);
runApp(const MyApp());
}

And I get an error on startup IOS

Performing hot restart...
Syncing files to device iPhone rafael...
Restarted application in 684ms.
flutter: ***** Supabase init completed Instance of 'Supabase'
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7)

#1 getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:120:24)

#2 HiveX.initFlutter (package:hive_flutter/src/hive_extensions.dart:12:18)

#3 HiveLocalStorage._initialize (package:supabase_flutter/src/local_storage.dart:92:5)

#4 SupabaseAuth.initialize (package:supabase_flutter/src/supabase_auth.dart:99:7)

#5 Supabase.initialize (package:supabase_flutter/src/supabase.dart:102:5)

#6 main (package:subbase/main.dart:7:3)


Flutter version - 3.10.6, Mac OS Ventura 13.5


supabase_flutter: ^1.10.10

@kpk-i710 kpk-i710 added the bug Something isn't working label Jul 28, 2023
@kpk-i710
Copy link
Author

After deleting the app, the error disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant