我有 flutter 项目,我正在尝试运行 iOS 版本,但在将 flutter 和 Xcode 更新到最新版本后出现错误,我使用 firebase core 插件
错误:
Could not build the precompiled application for the device.
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
播客文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' …Run Code Online (Sandbox Code Playgroud) flutter build ipa在使用 Xcode 14.3 和 Flutter 3.7.9 的macOS\xc2\xa0v13.3 (Ventura)上失败。
日志输出:
\nxcodebuild[83777:409216] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)\nRun Code Online (Sandbox Code Playgroud)\nflutter run在 iOS 模拟器上运行没有问题。
Xcode 截图:
项目详情:
该项目是一个 Objective-C 项目,最初创建于 2012 年。
现在大约 33% 的代码库是用 Swift 编写的。
项目具有 Cocoapod 依赖项。
项目在 Xcode 14.2 上编译没有问题
Xcode 14.3 问题:
在 Xcode 14.3 上,项目无法构建,抛出的错误位于 Xcode 生成的文件 ProjectName.private.swiftinterface 和 ProjectName.swiftinterface 中
Xcode 说“没有这样的模块 __ObjC”
请参阅随附的屏幕截图以获取完整的视觉效果。
我们尝试过的:
pod install --repo-update
整个项目清理,删除派生数据文件夹,再次清理,再次尝试构建。
问题:
任何帮助将不胜感激!
我刚刚安装了 Xcode 14.3,它在运行应用程序期间向我显示错误:
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.
Error launching application on iPhone 14 Pro Max.
Run Code Online (Sandbox Code Playgroud)