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

Getting Error in iOS device #932

Open
Akshay8750 opened this issue Jan 13, 2024 · 3 comments
Open

Getting Error in iOS device #932

Akshay8750 opened this issue Jan 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Akshay8750
Copy link

My app run perfectly on android device but when I run app on IOS device I got below error and my app closed after creashing:
This is the exception I am getting when running app on iOS device:

Exception: Unable to terminate com.nestohubbroker.nestoHubBroker on F3B27743-357C-423B-B351-40097BCC3246:
ProcessException: Process exited abnormally:

  Command: /usr/bin/arch -arm64e xcrun simctl terminate F3B27743-357C-423B-B351-40097BCC3246 com.nestohubbroker.nestoHubBroker
the Dart compiler exited unexpectedly.

Here is my main.dart file

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:flutter_downloader/flutter_downloader.dart';

import 'environment.dart';
import 'nesto_hub_app.dart';
import 'utils/shared_pref.dart';

void main() async {
  /// initializing the framework
  WidgetsFlutterBinding.ensureInitialized();

  /// setting up the orientation of the app to portrait only
  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

  /// initializing the environment file
  await dotenv.load(fileName: Environment.fileName);

  /// initializing flutter downloader package
  await FlutterDownloader.initialize();

  /// initializing the shared preference
  await SharedPref().initSharedPreferences();
  runApp(const NestoHubApp());
}

Here I have initialize the flutter_downloader package

@Akshay8750 Akshay8750 added the bug Something isn't working label Jan 13, 2024
@Akshay8750
Copy link
Author

Screenshot 2024-01-14 at 04 22 49 Here is the screenshot of error

@salmaahhmed
Copy link
Collaborator

@Akshay8750 can you try on a different simulator ?

@Akshay8750
Copy link
Author

@salmaahhmed I have tried on real iOS device as well

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

2 participants