首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >flutter无法使用Xcode11.3构建

flutter无法使用Xcode11.3构建
EN

Stack Overflow用户
提问于 2019-12-15 09:26:04
回答 1查看 981关注 0票数 1

更新xcode后,我无法使用xcode构建颤动代码。

每个工具都是

xcode版本为11.3

颤动1.12.13+hotfix.5·通道稳定

Dart 2.7.0

日志如下。

我该怎么解决它呢?

代码语言:javascript
复制
...

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreMedia.fr
    amework/Headers/CoreMedia.h:15:10: note: in file included from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreMedia.fr
    amework/Headers/CoreMedia.h:15:
    #include <CoreMedia/CMFormatDescription.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreMedia.fr
    amework/Headers/CMFormatDescription.h:26:10: error: could not build module 'CoreAudio'
    #include <CoreAudio/CoreAudioTypes.h>
             ^
    /Users/naohide_a/Workspace/flutter/sample/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file included from
    /Users/naohide_a/Workspace/flutter/sample/ios/Runner/Runner-Bridging-Header.h:1:
    #import "GeneratedPluginRegistrant.h"
            ^
    /Users/naohide_a/Workspace/flutter/sample/ios/Runner/GeneratedPluginRegistrant.h:8:9: error: could not build module 'Flutter'
    #import <Flutter/Flutter.h>
            ^
    192 errors generated.
    <unknown>:0: error: failed to emit precompiled header
    '/Users/naohide_a/Library/Developer/Xcode/DerivedData/Runner-gfrbptjupluobbdhelljevlsxpqy/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-He
    ader-swift_16EJIZIOPB8S-clang_KLU4EDN5EN1U.pch' for bridging header '/Users/naohide_a/Workspace/flutter/sample/ios/Runner/Runner-Bridging-Header.h'
    <unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
EN

回答 1

Stack Overflow用户

发布于 2019-12-16 11:40:14

我将flutter降级为v1.12.13+hotfix.6,将xcode降级为11.2.1。

最终为我工作得很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59340540

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档