我正在使用 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。)
任何帮助将不胜感激。
终于解决了这个问题。
Xcode
->targets
->Build settings
->Profiles and signing identity + team
Xcode
-> Product
-> Archive
-> export to App Store IPA
至少运行一次Xcode
已关闭希望这有帮助
凭证提供者请求失败并出现错误:“请求超时”
只需将计算机连接到您的移动热点即可。