MacOS 10.15 Catalina出现颤振问题 [英] Flutter Issues with MacOS 10.15 Catalina

查看:100
本文介绍了MacOS 10.15 Catalina出现颤振问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到 MacOS 10.15 Catalina 后, Flutter 出现了问题.

After updating to MacOS 10.15 Catalina, there are problems with Flutter.

具体来说,Flutter医生抱怨以下方面:

Specifically, Flutter doctor complaints about the following:

下载的可执行文件无法在主机上执行.

未安装CocoaPods.

重要的是要解释一下,在更新之前,当我的计算机运行 Mojave 10.14 时,不存在Flutter的这些问题,因此flutter医生-v报告没有问题一切.

It is important to explain that before updating, when my computer was running Mojave 10.14, these issues with Flutter did not exist, thus flutter doctor -v reported no issues whatsoever.

关于第一个问题:下载的可执行文件无法在主机上执行.

Flutter医生提供了此链接: https://github.com/flutter/flutter/issues/6207

Flutter doctor offers this link: https://github.com/flutter/flutter/issues/6207

尽管如此,链接的文章指的是 Linux ,而不是 MacOS ...

Nevertheless, the linked article refers to Linux, not MacOS...

关于第二个问题:未安装CocoaPods.

Flutter医生提出以下解决方案:

Flutter doctor suggests the following solution:

酿造可可豆

吊舱设置

尽管如此,尽管"install cocoapods" 可以正常工作,但"pod setup" 却失败了,表明出现以下错误:

Nevertheless, although "install cocoapods" works fine, "pod setup" fails, indicating the following error:

/usr/local/bin/pod: /usr/local/Cellar/cocoapods/1.7.4/libexec/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/pod: line 2: /usr/local/Cellar/cocoapods/1.7.4/libexec/bin/pod: Undefined error: 0

运行 flutter doctor -v 可获得以下结果:

[!] Flutter (Channel dev, v1.8.1, on Mac OS X 10.15 19A501i, locale es-PA)
    • Flutter version 1.8.1 at /Users/podriasereltuyo/flutter
    • Framework revision d3eee57c0b (7 days ago), 2019-07-08 11:04:24 -0700
    • Engine revision 3c51a7bfff
    • Dart version 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information



[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
MacBook-Air-de-Podria:ptyce podriasereltuyo$ flutter doctor -v
[!] Flutter (Channel dev, v1.8.1, on Mac OS X 10.15 19A501i, locale es-PA)
    • Flutter version 1.8.1 at /Users/podriasereltuyo/flutter
    • Framework revision d3eee57c0b (7 days ago), 2019-07-08 11:04:24 -0700
    • Engine revision 3c51a7bfff
    • Dart version 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information



[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/podriasereltuyo/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        brew install cocoapods
        pod setup

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

! Doctor found issues in 2 categories.

请谦虚地请求您的帮助,以阐明当下载的可执行文件无法在主机上执行时是什么意思?

I humbly wish to ask for your help, please, to clarify what does it mean when it says Downloaded executables cannot execute on host?

,该如何解决呢? 好吗?

此外, 如果使用Mojave 10.14时cocoapods运行良好,那么现在可能是问题所在,似乎无法成功运行 pod设置?

also, if cocoapods was running beautifully when using Mojave 10.14, what may be the issue now, being seemingly unable to successfully run pod setup?

在升级到 MacOs 10.15 Catalina Beta后,这里的其他人是否对Flutter产生了任何问题,而您在Mojave之前没有遇到过这些 ?

is anyone else here having any issues with Flutter after upgrading to MacOs 10.15 Catalina Beta, which you were not having before with Mojave?

更新... 在研究此问题时,我遇到了一个非常伤心的评论,这表明在Catalina中基本上不支持Flutter ...

Update... Researching about this issue, I've encountered a very sad comment, which suggests that basically there is no support for Flutter in Catalina...

请在这里找到它: https://github.com/flutter/flutter/issues/34000

评论说: 在MacOS 10.15上尚不支持Flutter ,尽管显然我们正在研究它.这是#22598的重复,它与从Catalina中删除32位支持有关.

The comment says: Flutter is not yet supported on macOS 10.15, although we're obviously looking at it. This is a duplicate of #22598, which relates to the removal of 32-bit support from Catalina.

所以,我开始认为回到莫哈韦的安全上可能是个好主意,至少Flutter工作得很好...

请分享您的想法,建议和建议?

推荐答案

可以安装cocoapods,运行flutter build ios并在iOS模拟器上运行.

Its possible to install cocoapods, run flutter build ios and run on the iOS simulator.

  • brew uninstall cocoapods
  • sudo gem install -n /usr/local/bin cocoapods
  • pod install
  • brew uninstall cocoapods
  • sudo gem install -n /usr/local/bin cocoapods
  • pod install

详细说明在这里: 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆