M1 报错building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

关于M1 电脑Xcode13
1.报错日志

'ld: in /Users/linhao.cui/Documents/NIO_Project/nio_app/NextevCar/Pods/NIOAppKit/Frameworks/openssl.framework/openssl(bio_lib.o),
building for iOS Simulator, but linking in object file built for iOS, for architecture arm64'

image.png
  1. 解决方式:

应用程序 -> Xcode显示简介 -> 使用Rosetta打开 前面打勾


image.png

Xcode 清除缓存, 路径: ~/Library/Developer/Xcode/DerivedData
Xcode clean Cmd + Shift + K
build 项目

你可能感兴趣的:(M1 报错building for iOS Simulator, but linking in object file built for iOS, for architecture arm64)