gpt4 book ai didi

xcodebuild: "No applicable devices found."导出存档时

转载 作者:行者123 更新时间:2023-12-03 14:39:51 25 4
gpt4 key购买 nike

从 Xcode 7† 开始,xcodebuild导出存档步骤一直给我们错误。

构建命令

xcodebuild -exportArchive -archivePath "path/to/Thing.xcarchive" \
-exportPath "path/to/" \
-exportOptionsPlist path/to/PackageOptions-adhoc.plist

产量
2015-10-08 16:28:27.409 xcodebuild[62682:464728] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7ff1a42d23f0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7ff1a72ddd80 {NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7ff1a72ddd80 {NSLocalizedDescription=No applicable devices found.}

** EXPORT FAILED **

是什么赋予了?怎么修?

† 7.0 和 7.0.1,在小牛队。

最佳答案

在我们的例子中,这与我们通过 rvm 使用非系统 ruby​​ 存在冲突。要修复,您需要调用 xcodebuildrvm use system 的上下文中.但是这样做很复杂,因为使用 rvm在脚本中比它应该更难。

我们创建了一个脚本来为我们解决这个问题:

#!/bin/bash --login
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
rvm use system
xcodebuild "$@"

这是 xcodebuild 的替代品,其中
xcodebuild arg1 ... argn

会成为
path/to/xcbuild-safe.sh arg1 ... argn

我已经 gisted生产就绪版本。确保您 chmod +x在那个文件上。

关于xcodebuild: "No applicable devices found."导出存档时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33041109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com