首页 > 解决方案 > Flutter iOS Xcode 构建抛出错误?

问题描述

我对 Xcode 还很陌生,不知道为什么我的构建失败了。以下是输出的一部分,我省略的部分只是关于弃用的警告。

 ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/user/Documents/GitHub/bus/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework/GoogleMapsCore' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)

我能做些什么来解决这个问题?我在 android 中构建我的应用程序没有问题。

标签: iosxcodeflutterdart

解决方案


它适用于 iOS 14.4 模拟器,并且 Google 地图正确显示在应用程序上。(M1 机器)


推荐阅读