[英]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.