Xcode-报错问题总结大全
作者:互联网
Xcode-报错问题总结大全
Intel芯片报错
-
问题描述:
xxx.xcodeproj Building for iOS, but the linked and embedded framework 'AliyunPlayerSDK.framework' was built for iOS + iOS Simulator.
解决办法:
- Change
Validate Workspace
setting in Xcode Build Settings toYES
.
M1芯片报错
-
YYKit
报错:ld: in /Users/xxx/Desktop/xxx/Pods/YYKit/Vendor/WebP.framework/WebP(libwebpencode_la-config.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
解决方法:
-
项目添加
arm64
:打开路径:左侧项目名一级目录
->PROJECT
->项目名
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下,分别添加:Any iOS Simulator SDK
->arm64
;如图:
-
Pod
添加arm64
:打开路径:左侧Pods一级目录
->PROJECT
->Pods
->Build Settings
->Excluded Architectures
里面在Debug
和Release
模式下,分别添加:Any iOS Simulator SDK
->arm64
;如图:
-
标签:Simulator,Xcode,Settings,iOS,Build,报错,arm64,大全 来源: https://www.cnblogs.com/cy521/p/15418233.html