ibireme / YYKit

A collection of iOS components.
MIT License
13.99k stars 3.69k forks source link

M1 模拟器编译问题 #587

Open fanyu opened 2 years ago

fanyu commented 2 years ago

YYImage/Vendor/WebP.framework/WebP(libwebpencode_la-config_enc.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

该怎么处理呢,

EXCLUDED_ARCHS arm64 这个是无效的

zwlhc commented 2 years ago

Podfile文件补充如下, 运行pod update。

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end
    end
  end
SAGESSE-CN commented 1 year ago

使用https://github.com/ibireme/YYKit/pull/596 或者等合并