Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RisingSSR opened this issue Dec 30, 2022 · 3 comments
Open

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

RisingSSR opened this issue Dec 30, 2022 · 3 comments

Comments

@RisingSSR
Copy link

网上的一些解决方案是基于将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
Copy link

huangyuding commented Dec 30, 2022 via email

@Svyanto
Copy link

Svyanto commented Dec 30, 2022 via email

@SAGESSE-CN
Copy link

使用#596 或者等合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants