错误:exportArchive:操作无法完成。 (IDEDistributionErrorDomain 错误 3。)

问题描述 投票:0回答:2

我正在使用 xcodebuild 在命令行上构建 iOS 项目。使用 Release 配置进行构建是可以的,它创建了 App.xcarchive。然后我尝试使用 App Store IPA 导出存档,

xcodebuild -exportArchive -archivePath App.xcarchive -exportPath ~/output/ -exportOptionsPlist appstore.plist

我的appstore.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>T3AM1D</string>
<key>method</key>
<string>app-store</string>
</dict>
</plist

这给了我错误,

错误:exportArchive:操作无法完成。(IDEDistributionErrorDomain 错误 3。)

任何帮助将不胜感激。

ios build release xcodebuild
2个回答
7
投票

终于解决了这个问题。

解决步骤

  1. 确保在 Mac 中成功设置所有配置文件和证书
  2. 确保 Xcode 中没有显示红色标记,例如
    Xcode
    ->
    targets
    ->
    Build settings
    ->
    Profiles and signing identity + team
  3. 确保所有目标(包括 MainApp、Widgets、扩展)都配置没有问题
  4. 确保所有功能、应用组和钥匙串均正常
  5. 重要提示:确保从
    Xcode
    ->
    Product
    ->
    Archive
    ->
    export to App Store IPA
    至少运行一次
  6. 从命令行运行 xcodebuild 时,请确保
    Xcode
    已关闭

希望这有帮助


0
投票

凭证提供者请求失败并出现错误:“请求超时”

只需将计算机连接到您的移动热点即可。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.