gpt4 book ai didi

xcode - 无法在我的 Mac 中的设备或模拟器上构建 flutter

转载 作者:行者123 更新时间:2023-12-02 16:36:08 29 4
gpt4 key购买 nike

两周后...我成功上传了 xcode 和 catalina OS,zsh ...一切都很好,但总是出错,无法在我的物理设备或模拟器上启动我的应用程序。 Xcode 构建后总是出错。

有趣的是,我从 pubspec.yaml 中删除了 App_review 包,但我总是出错...如果我启动 flutter example 它可以工作,但是如果我使用某些包,比如以前工作过的 admob,或者应用程序审查,我会遇到这个错误。我可以删除 app_review 包,但删除 ad mob no...

编辑:我删除了所有显示错误的包,但总是有这个错误这是我的物理设备错误:

Xcode's output:


ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel

note: Planning build
note: Constructing build description

这是我使用模拟器时的错误:

Xcode's output:

ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7s to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')

最佳答案

在 ios 文件夹中用 xCode 打开 Runner.xcodeproj,选择文件菜单,然后选择“项目设置...”。在 Build System 中,选择 Legacy Build System 并再次运行。

关于xcode - 无法在我的 Mac 中的设备或模拟器上构建 flutter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62700783/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com