我正在使用
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
这给了我错误,
error: exportArchive: The operation couldn’t be completed.(IDEDistributionErrorDomain error 3.)
任何帮助将不胜感激.