ibireme / YYKit

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

如何解决YYKit不支持arm64模拟器问题 #598

Open RisingSSR opened 1 year ago

RisingSSR commented 1 year ago

网上的一些解决方案是基于将arm64排除掉: 在podfile里面书写:(大同小异)

post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
        config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
        config.build_settings['VALID_ARCHS'] = 'arm64 arm64e armv7 armv7s x86_64 i386'
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
        config.build_settings['HEADER_SEARCH_PATHS'] = '$(PROJECT_DIR)/**'
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
        config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
        config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
    end
end

而排出arm64的语句就是config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' 普及一下吧:如果你在Apple芯片上编译,那模拟器也会使用Apple芯片,而不是intel芯片。 但这里想说的是如何解决YYKit不支持arm64模拟器问题

我们将上面的代码全部删掉,如果是Apple芯片的话,应该会直接报错。 把YYKit所有关于WebP的东西删掉,那你就可以使用arm64的模拟器了。

备注:如果你还使用了CocoaMarkdown(也是不支持arm64),就不要使用CocoaMarkdown,另有办法的。

huangyuding commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   谢谢,你的邮件我已经收到!

Svyanto commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

SAGESSE-CN commented 1 year ago

使用#596 或者等合并