【问题标题】:Flutter iOS Xcode build throwing errors?Flutter iOS Xcode 构建抛出错误?
【发布时间】:2021-11-21 04:54:11
【问题描述】:

我对 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 中构建我的应用程序没有问题。

【问题讨论】:

  • 这个answer 可能会帮助你。您只需要从您的项目和 Pod 项目中排除用于模拟器架构的 arm64

标签: ios xcode flutter dart


【解决方案1】:

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

【讨论】:

  • 对不起,我不太明白你的意思
  • 如果您在 iOS 14 模拟器中运行它,则不会出现错误。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-04-28
  • 2014-04-30
  • 2018-11-20
  • 2023-02-04
  • 2022-01-06
相关资源
最近更新 更多