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

Приложение не запускается на iOS-симуляторе #7

Open
mtrfnvwork opened this issue Aug 6, 2024 · 0 comments

Comments

@mtrfnvwork
Copy link

mtrfnvwork commented Aug 6, 2024

Код, который пытаюсь запустить:

import 'package:flutter/material.dart';
import 'package:yandex_maps_mapkit_lite/init.dart';
import 'package:yandex_maps_mapkit_lite/yandex_map.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await initMapkit(apiKey: '...');
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MainPage(),
    );
  }
}

class MainPage extends StatelessWidget {
  const MainPage({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: YandexMap(onMapCreated: (mapWindow) {}),
    );
  }
}

При запуске на iOS-симуляторе падает с ошибкой

Error: Unable to terminate com.example.untitled on 65362918-CC52-4EFA-A6BD-32D1CBE5034A:
ProcessException: Process exited abnormally with exit code 3:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Simulator device failed to terminate com.example.untitled.
found nothing to terminate
Underlying error (domain=NSPOSIXErrorDomain, code=3):
	The request to terminate "com.example.untitled" failed. found nothing to terminate
	found nothing to terminate
  Command: /usr/bin/arch -arm64e xcrun simctl terminate 65362918-CC52-4EFA-A6BD-32D1CBE5034A com.example.untitled
the Dart compiler exited unexpectedly.

На физическом устройстве такой проблемы нет

Версия библиотеки 4.7.0-beta
iOS-версия симулятора 17.5
Версия Flutter 3.22.3

@mtrfnvwork mtrfnvwork changed the title Не запускается на ios-стимуляторе Не запускается на ios-симуляторе Aug 6, 2024
@mtrfnvwork mtrfnvwork changed the title Не запускается на ios-симуляторе Не запускается на iOS-симуляторе Aug 6, 2024
@mtrfnvwork mtrfnvwork changed the title Не запускается на iOS-симуляторе Приложение не запускается на iOS-симуляторе Aug 6, 2024
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

1 participant