Flutter:-无法使用Flutter运行iOS命令构建iOS应用。 **建立失败**

时间:2019-11-21 05:16:31

标签: ios flutter build

Flutter:日志详细信息=> Xcode构建已完成。无法构建iOS应用,当我运行flutter运行iOS时,谁能帮我解决与ios相关的错误...

 Xcode build done.                                           21.9s
    Failed to build iOS app
    Error output from Xcode build:
    ↳
        ** BUILD FAILED **
    Xcode's output:
    ↳
        === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
        ld: warning: Could not find auto-linked library 'swiftFoundation'
        ld: warning: Could not find auto-linked library 'swiftMetal'
        ld: warning: Could not find auto-linked library 'swiftDarwin'
        ld: warning: Could not find auto-linked library 'swiftUIKit'
        ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
        ld: warning: Could not find auto-linked library 'swiftQuartzCore'
        ld: warning: Could not find auto-linked library 'swiftCore'
        ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
        ld: warning: Could not find auto-linked library 'swiftObjectiveC'
        ld: warning: Could not find auto-linked library 'swiftDispatch'
        ld: warning: Could not find auto-linked library 'swiftCoreMedia'
        ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'
        ld: warning: Could not find auto-linked library 'swiftCoreImage'
        ld: warning: Could not find auto-linked library 'swiftCoreAudio'
        Undefined symbols for architecture x86_64:

扑打医生-v

  

[✓] Flutter(频道稳定,在Mac OS X 10.14.6上为v1.9.1 + hotfix.6   18G87,区域设置为en-IN)       •位于/ Users / btlmac / www / flutter的Flutter版本1.9.1 + hotfix.6       •Framework修订版68587a0916(10周前),2019-09-13 19:46:58 -0700       •引擎修订版b863200c37       •Dart 2.5.0版

     

[✓] Android工具链-为Android设备开发(Android SDK   版本28.0.3)       •位于/ Users / btlmac / Library / Android / sdk的Android SDK       •未配置Android NDK位置(可选;对本机性能分析支持很有用)       •平台android-29,构建工具28.0.3       •ANDROID_HOME = / Users / btlmac / Library / Android / sdk       •Java二进制文件,位于:/ Applications / Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java       •Java版本OpenJDK运行时环境(内部版本1.8.0_152-release-1024-b01)       •接受所有Android许可。

     

[✓] Xcode-为iOS和macOS开发(Xcode 10.2.1)       •Xcode位于/Applications/Xcode.app/Contents/Developer       •Xcode 10.2.1,内部版本10E1001       •CocoaPods版本1.8.4

     

[✓] Android Studio(3.1版)       •位于/ Applications / Android Studio.app/Contents的Android Studio       •Flutter插件版本29.0.1       •Dart插件版本173.4700       •Java版本OpenJDK运行时环境(内部版本1.8.0_152-release-1024-b01)

     

[✓] VS代码(1.40.1版)       •/ Applications / Visual Studio Code.app/Contents中的VS代码       •Flutter扩展版本3.6.0

     

[✓]已连接设备(2个可用)       •Lenovo X3a40•5453f602•android-arm64•安卓6.0.1(API 23)       •iPhone X•A70C38B1-AE7B-4EF5-B570-8872C81C147B•ios•com.apple.CoreSimulator.SimRuntime.iOS-12-2(模拟器)

     

•找不到问题!

2 个答案:

答案 0 :(得分:0)

运行 flutter clean 通常可以解决构建问题。该命令会清除项目的构建缓存,并尝试再次运行应用程序应该会重建项目并可能清除所有错误。

如果您仍然遇到问题,提供一个 minimal repro 让人们能够复制给定的问题也很有帮助。

答案 1 :(得分:0)

尝试设置您的 Runner > 信息 > 像这样的配置并按照此 Flutter Run with Hot Reload on Real iOS Devices guide ?

Runner > Info > Configs