【问题标题】:Xcode error - xcodebuild: error: option 'Destination' requires at least one parameter of the form 'key=value'Xcode 错误 - xcodebuild: 错误:选项 'Destination' 需要至少一个形式为 'key=value' 的参数
【发布时间】:2021-03-02 17:37:32
【问题描述】:

我是 ios 应用程序开发的新手。我正在尝试在终端中运行以下命令。

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: error: option 'Destination' requires at least one parameter of the form 'key=value'

我尝试了 StackOverflow 和 git 中建议的不同方式。但没有什么对我有用。

这些是我尝试过的以下命令。

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

【问题讨论】:

    标签: ios swift terminal ios-simulator


    【解决方案1】:

    在目的地中使用= 而不是:,如下所示:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 2020-11-13
      • 1970-01-01
      • 1970-01-01
      • 2014-11-18
      • 1970-01-01
      • 2012-10-08
      相关资源
      最近更新 更多