tencentyun / qcloud-sdk-ios

腾讯云服务iOS终端SDK
http://qcloud.com
36 stars 26 forks source link

Apple M1 适配 #30

Closed cheungbo-mong closed 7 months ago

cheungbo-mong commented 3 years ago

为了帮助我们更好的解决您的问题,请您先回答下面的几个问题。

在 M1 上,运行即可

core 的 Podspec 中的

  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

虽然可以解决 Intel 上 Xcode 12 模拟器的问题,但是 M1 上 arm 架构的模拟器没有得到实质解决(非 Rosetta 环境)。 希望尽快可以适配。

祝好。

HuRKun commented 3 years ago

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator]' => 'arm64' } s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator]' => 'arm64' } 这个需要配置在哪里?

wangbo1185742894 commented 7 months ago

Xcode->product->destination->destination achitectures->show rosetta destinations,这时模拟器会处于兼容x86_64架构模式 试试这样。