Миграция проекта Flutter с Intel на Apple Silicon Mac

Некоторое время я работал на компьютере Intel, но теперь я перешел на Apple Silicone Mac. Проблема в том, что если я создаю новый проект (в Vscode), он без проблем запускается на симуляторе ios, но я не могу запустить проект, над которым я работал, по модели Intel. Есть решение "Перенести" или что-то изменить, чтобы можно было его открыть? Кроме того, я почти месяц не работал (может быть, было обновление по флаттеру)?

Вот результат моего кода:

      
code build done.                                            3.4s
4
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
Failed to build iOS app
Error output from Xcode build:
↳
    objc[70978]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ?? (0x1179702b8). One of the two will be used. Which one is undefined.
    objc[70978]: Class AMSupportURLSession is implemented in both ?? (0x20ba23940) and ?? (0x117970308). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **
Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    /Users/user/Documents/flutter_workspace/Flutter_MQTT-master 3 copy 3/build/ios/Debug-iphonesimulator/local_auth/local_auth.framework: resource fork, Finder information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    /Users/user/Documents/flutter_workspace/Flutter_MQTT-master 3 copy 3/build/ios/Debug-iphonesimulator/flutter_secure_storage/flutter_secure_storage.framework: resource fork, Finder information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'shared_preferences' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'local_auth' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'flutter_secure_storage' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'vibration' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flutter' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 11.
Exited (sigterm)

А это мой файл pubspec.yaml

      
version: 1.0.0+1

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  koukicons:
  rflutter_alert: ^1.0.3
  flutter:
    sdk: flutter
  mqtt_client: ^8.0.0
  provider: ^4.3.2+2
  get_it: ^5.0.1
  vibration: ^1.7.2
  clay_containers: ^0.2.2
  spincircle_bottom_bar: ^1.0.0
  local_auth: ^0.6.2+1
  flutter_secure_storage: ^3.3.3
  neumorphic: ^0.4.0
  shared_preferences: ^0.5.8
  flutter_neumorphic: ^3.0.3

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3

dev_dependencies:
  flutter_test:
    sdk: flutter

Надеюсь, это поможет.

0 ответов

Другие вопросы по тегам