RxReader/tencent_kit

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

virskor opened this issue · 6 comments

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

flutter 2.5

希望早日解决,我也遇到了,只有降级flutter版本了

@virskor @changleibox 请自行检查一下有没有引入 flutter_bugly 插件,我的项目里没有引入 tencent_kit,也报这错

具体可查看flutter/issues/87985

试了试,最佳办法是修改 podfile

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    # 兼容 Flutter 2.5
    target.build_configurations.each do |config|
#       config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64'
    end
  end
end

试了试,最佳办法是修改 podfile


post_install do |installer|

  installer.pods_project.targets.each do |target|

    flutter_additional_ios_build_settings(target)

    # 兼容 Flutter 2.5

    target.build_configurations.each do |config|

#       config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'

      config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64'

    end

  end

end

我也是改成你这样好了

xcode 直接运行没问题,flutter run 就报错