Xcode-报错问题总结大全

Xcode-报错问题总结大全

Intel芯片报错

  1. 问题描述:

    xxx.xcodeproj Building for iOS, but the linked and embedded framework 'AliyunPlayerSDK.framework' was built for iOS + iOS Simulator.
    

解决办法:

  1. Change Validate Workspace setting in Xcode Build Settings to YES.

M1芯片报错

  1. 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
    

    解决方法:

    1. 项目添加arm64:打开路径:左侧项目名一级目录 -> PROJECT -> 项目名 -> Build Settings -> Excluded Architectures 里面在DebugRelease模式下,分别添加:Any iOS Simulator SDK -> arm64

      如图:Xcode-报错问题总结大全

    2. Pod添加arm64:打开路径:左侧Pods一级目录 -> PROJECT -> Pods -> Build Settings -> Excluded Architectures 里面在DebugRelease模式下,分别添加:Any iOS Simulator SDK -> arm64

      如图:Xcode-报错问题总结大全

上一篇:golang 环境配置


下一篇:Docker 映像的平台(linux/amd64)与检测主机平台(linux/arm64/v8)不匹配