我正在使用VSCode开发我的Flutter 应用程序,在我将XCode升级到最新版本(14.3)后,我无法在模拟器(iOS 15,IPhone11)上运行我的Flutter 应用程序.以下是错误消息:

Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.

推荐答案

我已经更新了Pods库的最低部署11.0

确保所有库的最低部署版本都应高于11.0,这样我就可以使用它了.

enter image description here

在Podfile的末尾添加以下代码并执行Pod安装.

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
         end
    end
  end
end

Ios相关问答推荐

SWIFT中具有可选返回类型和泛型的网络请求

如何使视图完全适合屏幕,而不会在旋转时溢出手机屏幕的边界?

SWIFT AVFoundation翻转相机功能不起作用

快速相机放大手势不能正常工作

在滚动视图中固定页眉,但在页眉上方嵌入元素

Xcode 15阻止我的应用程序运行:由于实时模式录制的高比率,丢失了1条日志(log)/路标消息?

无法向委托发送数据

在Xcode 15中为具有@Binding的视图创建SwiftUI #预览的方法

如何解码没有名称的 JSON 数组?

AppCenter 错误:/usr/bin/xcodebuild 失败,返回码:65

如何仅更改一个视图的导航标题 colored颜色 ?

在 SwiftUI 中将 TextEditor 文本计数连接到 ProgressView

SwiftUI 文本字段代理绑定代码忽略空格不起作用?

SwiftUI:添加核心数据项时更新选项卡栏徽章

警告:iPad:Icon-72.png:图标尺寸(0 x 0)

在 iOS 编程中使用 Storyboard 代替 xib 文件有什么好处?

如何在 iOS 的 xib 中设置十六进制 colored颜色 代码

如何判断是否为 64 位构建了静态库?

将 iPhone xib 转换为 iPad xib?

如何获取 iTunes 连接团队 ID 和团队名称?