[英]Xcode error: building for iOS Simulator, but linking in object file built for iOS
Never had a lot of problems until the time to buy Macbook Air M1.在购买 Macbook Air M1 之前,从来没有遇到过很多问题。 Just yesterday my app was build without any error in Xcode 12.4.
就在昨天,我的应用程序在 Xcode 12.4 中没有任何错误。 I did not make any special changes and today build failed:
我没有进行任何特殊更改,今天构建失败:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName /Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' 架构 arm64clang:错误:linker 命令失败,退出代码为 1(使用 -v 查看调用)
Please can you help me, how to solve it?请你能帮助我,如何解决它?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.看起来像 OpenSSL-Universal CocoaPods 发行版中缺少的 Arm64 模拟器片。
Make sure that you're using the latest version with pod update
and contact the OpenSSL-Universal if there's still an issue.确保您使用的是带有
pod update
的最新版本,如果仍有问题,请联系 OpenSSL-Universal。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.