两天前它运作良好。
但是 6月22日下午4点UTC + 3 导出失败并显示错误 - “错误:exportArchive:找不到适用的设备。” 我阅读了每篇文章,关于这个错误的每篇文章,但没有任何与我的相关。 我没有安装rvm,我的Mac上根本没有CFPropertyList gem,除了OS X SDK里面的Xcode.app中的那个。
我知道一点Ruby,无法弄清楚如何调试此错误以及此gem可以在哪里。 你知道怎么解决吗? 我甚至无法理解什么打破了企业的导出ipa - 在这个构建代理上没有安装任何新东西,只是从存储库中定期更新代码。
我使用Xcode Version 7.3.1(7D1014)和相同版本的命令行工具。 我不使用fastlane。 Bitcode已启用。 导出到应用商店运作良好。
xcodebuild命令行:
$ xcodebuild -exportArchive -exportOptionsPlist /Volumes/Agent/work/52b14e8c26a910b4/sources/myapp/Application/ExportOptions.plist -archivePath /Volumes/Agent/work/52b14e8c26a910b4/Artifacts/myapp-enterprise-1.0.0.362.xcarchive -exportPath /Volumes/Agent/work/52b14e8c26a910b4/Artifacts/myapp-enterprise-1.0.0.362.ipa
$ cat /Volumes/Agent/work/52b14e8c26a910b4/sources/myapp/Application/ExportOptions.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>teamID</key>
<string>U****9****</string>
<key>method</key>
<string>enterprise</string>
<key>uploadSymbols</key>
<true/>
</dict>
</plist>
完整错误日志:
[16:36:00][Step 2/2] + xcodebuild -exportArchive -exportOptionsPlist /Volumes/Agent/work/52b14e8c26a910b4/sources/myapp/Application/ExportOptions.plist -archivePath /Volumes/Agent/work/52b14e8c26a910b4/Artifacts/myapp-enterprise-1.0.0.362.xcarchive -exportPath /Volumes/Agent/work/52b14e8c26a910b4/Artifacts/myapp-enterprise-1.0.0.362.ipa
[16:36:01][Step 2/2] 2016-06-24 16:41:22.239 xcodebuild[56839:14600947] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/5s/c4by9tm914nc_m4g7bylplwm0000gn/T/myapp_2016-06-24_16-41-22.239.xcdistributionlogs'.
[16:36:01][Step 2/2] 2016-06-24 16:41:22.258 xcodebuild[56839:14600947] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/buildserver/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
[16:36:01][Step 2/2] ** EXPORT FAILED **
[16:36:01][Step 2/2]
[16:36:01][Step 2/2] 2016-06-24 16:41:22.773 xcodebuild[56839:14600947] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fa43ac7fea0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
[16:36:01][Step 2/2] error: exportArchive: No applicable devices found.
[16:36:01][Step 2/2]
[16:36:01][Step 2/2] Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}