其他分享
首页 > 其他分享> > Xcode-报错问题总结大全

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

      如图:

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

      如图:

标签:Simulator,Xcode,Settings,iOS,Build,报错,arm64,大全
来源: https://www.cnblogs.com/cy521/p/15418233.html