【发布时间】:2015-12-01 06:20:43
【问题描述】:
如果我尝试使用xcodebuild 的命令行从.xcarchive 导出.ipa,如下所示:
xcodebuild archive -scheme "Cross" -archivePath "build/Cross.xcarchive"
xcodebuild -exportArchive -archivePath "build/Cross.xcarchive" -exportPath "build/Cross-tvOS.ipa"
失败并出现错误“平台未知:appletvos”:
+ xcodebuild -exportArchive -archivePath build/Cross.xcarchive -exportFormat app -exportPath build/Cross-tvOS.ipa
--- xcodebuild: WARNING: -exportArchive without -exportOptionsPlist is deprecated
2015-11-30 22:13:44.403 xcodebuild[42874:30912505] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-9081/IDEFoundation/Execution/Archiving/IDEArchivedApplication.m:148
Details: Asked if we support packaging as a given format, but the platform is unknown: appletvos
Object: <IDEArchivedApplication: 0x7f89bea3e990>
Method: -supportsPackagingAsFormat:
Thread: <NSThread: 0x7f89bbc320d0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
error: archive at path '/Users/pol/Downloads/Cross/tvOS/build/Cross.xcarchive' cannot be exported as APP
** EXPORT FAILED **
我可以使用 Xcode Organizer 成功导出 .ipa。这是在 Xcode 版本 7.1.1 上观察到的。
【问题讨论】:
标签: xcode7 xcodebuild ipa tvos