【问题标题】:Unable to read the license file `../LICENSE` for the spec `integration_test无法读取规范“integration_test”的许可文件“../LICENSE”
【发布时间】:2021-04-04 09:01:26
【问题描述】:

我在 Android Studio 中使用 Flutter 以及运行时

CocoaPods 的错误输出如下所示

你知道如何解决这个问题吗?

[Android工作室截图]

在 iPhone 8 上以调试模式启动 lib/main.dart...

正在运行 pod 安装...

CocoaPods 的输出:

  Preparing

。 . . . .

CocoaPods 的错误输出: ↳

[!] Automatically assigning platform `ios` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] A license was specified in podspec `integration_test` but the file does not exist - /Users/a/AndroidStudioProjects/flutter_app5/ios/.symlinks/plugins/integration_test/LICENSE

[!] Unable to read the license file `../LICENSE` for the spec `integration_test (0.0.1)`

[!] Unable to read the license file `../LICENSE` for the spec `integration_test (0.0.1)`

运行 pod install 时出错 在 iPhone 8 上启动应用程序时出错。

【问题讨论】:

    标签: flutter cocoapods flutter-dependencies


    【解决方案1】:

    我也有同样的问题。我能够解决的第一个问题: 打开项目的 Podfile,它位于项目的 ios 文件夹中,然后将第 2 行中的 cmets 删除到例如

    # Uncomment this line to define a global platform for your project
    platform :ios, '9.0'
    

    【讨论】:

      【解决方案2】:

      首先,如果您在devbeta 频道中使用flutter,应将其更改为masterstable

      如果不是,要解决第一个问题,请打开 ios/Podfile 并取消注释第二行

      # Uncomment this line to define a global platform for your project
      platform :ios, '9.0'
      

      要解决与integration_test相关的另一个问题,一个简单的方法就是删除它,打开pubspec.yaml,删除下面的代码

      integration_test:
          sdk: flutter
      

      试一试。

      【讨论】:

        猜你喜欢
        • 2020-04-20
        • 2021-06-09
        • 2014-07-28
        • 2018-10-27
        • 2020-08-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多