xcodebuild exportArchive:找不到适用的设备 [英] xcodebuild exportArchive: no applicable devices found

查看:221
本文介绍了xcodebuild exportArchive:找不到适用的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用iOS 10升级到Xcode 8之后,我得到了这个错误。我在最新的El Capitan上,并使用以下版本的ruby(我通过rvm更新,与系统版本2.0.0相同)和CFPropertyList:

After upgrading to Xcode 8 with iOS 10, I get exactly this error. I am on latest El Capitan and using the following versions of ruby (I updated via rvm, same with 2.0.0 which is system version) and CFPropertyList:

Philipps-MacBook-Pro:mobile-sdk prakuschan$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]


Philipps-MacBook-Pro:mobile-sdk prakuschan$ gem list CF
*** LOCAL GEMS ***
CFPropertyList (2.3.3)

xcodebuild -exportArchive命令在shell脚本中执行,并且在成功归档后,我得到以下错误:

The xcodebuild -exportArchive command is executed in a shell script, and after a successful archive I get the following error:

** ARCHIVE SUCCEEDED **
2016-09-22 10:02:16.460 xcodebuild[10375:8369748] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/9y/r64c9wld0jx2yf3glsrzhhr00000gn/T/AppName_2016-09-22_10-02-16.456.xcdistributionlogs'.
2016-09-22 10:02:18.228 xcodebuild[10375:8369748] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fe435f9dfb0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.
Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
** EXPORT FAILED **

当查看xcdistributionlogs时,IDEDistribution.standard.log在末尾包含以下几行:

When looking into the xcdistributionlogs, the IDEDistribution.standard.log contains the following lines at the very end:

2016-09-22 08:02:18 +0000 [MT] /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with a signal 6
2016-09-22 08:02:18 +0000 [MT] ipatool JSON: (null)

我不知道它是否有价值,但这是路径到ipatool:

I don't know if it is valuable, but this is the path to ipatool:

2016-09-22 08:02:17 +0000 [MT] Running /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool

任何帮助都非常感谢。我已经尝试过许多在google上找到的建议,但尚未找到解决方案。

Any help is highly appreciated. I already tried many suggestions found on google, but found no solution yet.

推荐答案

我看到了同样的问题。搜索后:

I was seeing the same issue. After searching through:

https:/ /forums.developer.apple.com/thread/13446

以及其他与Xcode 7类似的问题。我意识到这是独一无二的。如果您在Xcode 8中调整了ipatool脚本,则可以对其进行修复。

And elsewhere for Xcode 7 similar issues. I realized this one is unique. You can fix it if you tweak the ipatool script in Xcode 8.

sudo vi /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool

并注释掉这一行:

# Check the artwork idiom.
#return nil,"the device doesn't support the app's UIDeviceFamily" unless (deviceTraits.supportedIdioms & bundle.supportedIdioms).size > 0

通过在以下位置搜索ipatool命令发现:

Found via sleuthing the ipatool command in:

/var/folders/.../IDEDistribution.standard.log

您可以通过以下方式进行搜索:

You can search for these via:

$ sudo find /private/var -name "*.xcdistributionlogs"






相关详细信息/调试步骤: https://github.com/fastlane/fastlane/issues/8737

这篇关于xcodebuild exportArchive:找不到适用的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆