【问题标题】:flutter: cannot build ios (xcode issues, pod issues?)颤振:无法构建 ios(xcode 问题,pod 问题?)
【发布时间】:2020-02-11 22:34:53
【问题描述】:

复制步骤

只是尝试将我的应用发布到 ios 商店。已经在 Play 商店上架。 我无法在 Xcode 中存档,经常遇到问题。目前在尝试存档时遇到这些问题:

尝试在 ios 目录中运行 pod install 时,我继续收到此警告(根据我的研究,这似乎更像是一个错误):

我尝试按照this very long thread 线程中的所有内容来解决此问题,但没有任何效果。

我可以通过取消注释 Podfile 中的第 2 行 platform :ios, '9.0' 来删除另一个警告。

我尝试在进行更改时关闭 Xcode,并尝试重新启动计算机。

我可以flutter run,当我的 iPhone 连接到我的 macbook 时,该应用程序将在我的 iPhone 上正常运行。

我尝试过的其他线程:

预期结果:

我可以在 Xcode 中成功存档。

实际结果:

Flutter doctor 似乎表明一切正常,但我在尝试存档时继续收到此错误。

AdministorsMBP4:mem_plus_plus matt$ flutter doctor --verbose
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.3 19D76, locale en-US)
    • Flutter version 1.12.13+hotfix.5 at /Users/matt/development/flutter
    • Framework revision 27321ebbad (9 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/matt/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 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.4

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

[!] IntelliJ IDEA Community Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
    • Takkeezi’s iPhone • {redacted} • ios • iOS 12.4.4

【问题讨论】:

    标签: ios xcode flutter


    【解决方案1】:

    试试这个。

    1. 扑干净
    2. pod 安装
    3. 构建项目

    检查一个 pod 模块

    Pod 文件

    【讨论】:

    • 我在基本目录中运行 clean flutter,然后 cd'd 到 ios 目录并运行 pod install。然后我在 xCode 中打开了 ios 目录(因为在打开工作区时,我没有看到截图中的 Pods 目录),而且我几乎没有你做的文件夹。我会用截图更新帖子。
    • 您将首先清除 Cocoapod 警告。如果使用 Flutter Profile,则在 down 时检查 Podfile。项目 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, }
    猜你喜欢
    • 2021-05-27
    • 2020-12-24
    • 1970-01-01
    • 2020-10-13
    • 2021-11-16
    • 2021-05-05
    • 2022-01-12
    • 2021-10-20
    • 1970-01-01
    相关资源
    最近更新 更多