xcodebuild:错误 - 无法找到与提供的目标说明符匹配的目标

问题描述 投票:0回答:1

最近我将 xcode 更新到 15.0.1,现在我在尝试构建 iOS 应用程序时遇到 xcodebuild 问题。错误消息是“无法找到与提供的目标说明符匹配的目标”。我试过了

  1. 删除 pod 文件并安装。

。详情如下:

Xcode版本:15.0.1 设备/模拟器 ID:Iphone 13 pro max 部署目标:12 使用命令:flutter run 颤振版本:3.10.5 控制台输出:

Launching lib/main.dart on iphone 13 pro max in debug mode...

运行 Xcode 构建...
Xcode 构建完成。 2.0秒 无法构建 iOS 应用程序 Xcode 构建的错误输出: ↳ xcodebuild:错误:无法找到与提供的目标说明符匹配的目标: { id:B22CA3A0-F0D3-49E0-80CB-9F5A693B1130 }

    Available destinations for the "Runner" scheme:
            { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001931E00CE0801E }
            { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

Xcode 的输出: ↳ 在路径中写入结果包: /var/folders/rg/31btzj714g10q_c9d0fqb44m0000gp/T/flutter_tools.gxeem8/flutter_ios_build_temp_diroWMUbN/temporary_xcresult_bundle

无法为模拟器构建应用程序。 在 iphone 13 pro max 上启动应用程序时出错。

任何有关解决此问题的见解或建议将不胜感激。谢谢!

ios flutter xcode ios-simulator
1个回答
0
投票

I had the same issue. I solved it by changing the Supported Platform in Build Settings in the Xcode Runner from Iphoneos to iOS.

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.