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

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

Closed
virskor opened this issue Sep 9, 2021 · 6 comments

Comments

@virskor
Copy link

virskor commented Sep 9, 2021

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

flutter 2.5

@changleibox
Copy link

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

@droplet-js
Copy link
Collaborator

droplet-js commented Sep 9, 2021

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

具体可查看flutter/issues/87985

@droplet-js
Copy link
Collaborator

@droplet-js
Copy link
Collaborator

试了试,最佳办法是修改 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

@virskor
Copy link
Author

virskor commented Sep 9, 2021

试了试,最佳办法是修改 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

我也是改成你这样好了

@cubegao
Copy link

cubegao commented Sep 23, 2021

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

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