两周后...我成功上载了xcode和catalina OS,zsh ...一切都不错,但总是出错,无法在我的物理设备或模拟器上启动我的应用程序。 Xcode构建后总是出错。
有趣的是,我从pubspec.yaml中删除了App_review程序包,但我总是出错。 如果我启动flutter示例,它可以工作,但是,如果我使用以前使用过的admob或应用程序审查之类的某些程序包,则会出现此错误。我可以删除app_review程序包,但不能删除广告暴民...
编辑:我删除了所有显示错误但始终存在此错误的软件包 这是我的物理设备错误:
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')
答案 0 :(得分:2)
使用ios文件夹中的xCode打开Runner.xcodeproj,选择“文件”菜单,然后选择“项目设置...”。在“构建系统”中,选择“旧版构建系统”,然后再次运行。
答案 1 :(得分:2)
我选择了旧版构建系统 ,现在我有最后一个错误
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 2 :(得分:2)
请查看此线程,并确保您不会意外覆盖VALID_ARCHS构建设置:What does warning "Mapping architecture arm64 to x86_64" mean?