【发布时间】: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