You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter iOS调试失败求助:Xcode报错找不到libarclite_iphoneos.a

Flutter iOS构建错误:libarclite_iphoneos.a 文件找不到的解决方法

错误原因

这个问题是因为Xcode 14及以上版本移除了对iOS 12及更低版本的Arclite支持,而你的项目(或依赖的Pod库)的最低iOS部署目标低于13.0,导致链接时找不到对应的库文件。Android和iOS采用完全独立的构建系统,所以Android端不受影响。

解决步骤

1. 统一项目最低iOS部署版本

  • 打开项目的 ios/Runner.xcworkspace 文件
  • 在Xcode中选中Runner target,切换到Info标签页,在Deployment Info里将iOS Deployment Target改为13.0或更高
  • 打开ios/Podfile,将第一行的platform :ios, 'x.x'修改为platform :ios, '13.0'

2. 清理并重新构建项目

在终端依次执行以下命令:

flutter clean
cd ios
pod deintegrate
pod install
cd ..
flutter run

3. 强制统一所有Pod依赖的部署版本(如果步骤1、2无效)

打开ios/Podfile,在末尾添加或修改post_install块:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
  end
end

然后重新执行cd ios && pod install,回到项目根目录运行flutter run

内容的提问来源于stack exchange,提问作者Cristiano Z

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 14:49:59