简体   繁体   English

Xcode 错误 - xcodebuild:错误:选项“目标”至少需要一个“key=value”形式的参数

[英]Xcode error - xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value'

I am new to ios app development.我是 ios 应用程序开发的新手。 I am trying to run the following command in terminal.我正在尝试在终端中运行以下命令。

xcodebuild clean build -workspace test.xcworkspace -scheme test -destination "platform:iOS,id:5E6F97EE-2CD8-4701-AC36-1A488CA646DF,OS:14.1,name:iPhone 11" -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO

I am getting the following error我收到以下错误

xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value'

I tried different way as suggested in StackOverflow and git.我尝试了 StackOverflow 和 git 中建议的不同方式。 But nothing worked for me.但没有什么对我有用。

these are the following commands I tried.这些是我尝试过的以下命令。

xcodebuild clean build -workspace test.xcworkspace -scheme test -destination "platform:iOS,id:5E6F97EE-2CD8-4701-AC36-1A488CA646DF,OS:14.1,name:iPhone 11" -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO

xcodebuild clean build -workspace test.xcworkspace -scheme test -destination 'platform:iOS,id:5E6F97EE-2CD8-4701-AC36-1A488CA646DF,OS:14.1,name:iPhone 11' -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO

xcodebuild clean build -workspace test.xcworkspace -scheme test -destination platform:iOS,id:5E6F97EE-2CD8-4701-AC36-1A488CA646DF,OS:14.1,name:iPhone 11 -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO

在目的地中使用=而不是:像这样:

'platform=iOS,id=5E6F97EE-2CD8-4701-AC36-1A488CA646DF,OS=14.1,name=iPhone 11'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 xcodebuild:错误:选项“目标”至少需要一个“键=值”形式的参数 - xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value' Pod init 错误工具“xcodebuild”需要 Xcode - Pod init error tool 'xcodebuild' requires Xcode 错误:“此文档至少需要 Xcode 12.0” - ERROR: “This document requires at least Xcode 12.0” Travis:xcodebuild:错误:无法找到与提供的目的地说明符匹配的目的地 - Travis: xcodebuild: error: Unable to find a destination matching the provided destination specifier xcodebuild -exportArchive:键“方法”的 exportOptionsPlist 错误:预期 {} 之一 - xcodebuild -exportArchive: exportOptionsPlist error for key 'method': expected one of {} Jenkins“xcodebuild:错误:不包含Xcode项目或工作区 - Jenkins “xcodebuild: error : not contain an Xcode project or workspace Xcode 10 构建错误:“必须声明至少一个输出文件” - Xcode 10 build error: 'must declare at least one output file' 构建时 Xcode 12.5.1 出错,(错误 spawnSync xcodebuild ENOBUFS) - Error in Xcode 12.5.1 while building, (error spawnSync xcodebuild ENOBUFS) iOS:XCode 4.4.1:xcodebuild错误-无法从文件读取诊断 - iOS: XCode 4.4.1: xcodebuild error - Unable to read diagnostics from file Xcode 9:xcodebuild -exportArchive错误读取文件:info.plist - Xcode 9: xcodebuild -exportArchive Error Reading File: info.plist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM