我使用gitlab-ci,altool上传ipa,可以生成ipa和xcarchive,并且使用xcode打开xcarchive时,可以正常上传到appstore,但是使用altool时,会发生此错误:You must supply a CFBundleIdentifier for this request
,代码:APPL已设置1191
,有人可以解决此问题吗?我的xcode版本是9.4.1
导出外壳为:
- xcodebuild clean archive -workspace $scheme.xcworkspace -scheme $scheme -configuration Release -archivePath build/$scheme | xcpretty
- xcodebuild -exportArchive -archivePath "build/$scheme.xcarchive" -exportPath "build/$scheme.ipa" -exportOptionsPlist "ExportOptions.plist" | xcpretty
上传外壳:
altool="/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool"
time "$altool" --validate-app -f "pathto.ipa" -u $user -p $password -t ios --output-format xml
echo "upload app ..."
time "$altool" --upload-app -f "pathto.ipa" -u $user -p $password -t ios --output-format xml
可以参考this question,但不能解决此问题。
我在DistributionSummary.plist中找到了团队名称,而在Packaging.log中我发现了teamName = null:
distributionMethod(resolved)='', team(resolved)=''> Chain (11, self inclusive):
我尝试了手动和自动签名,结果是相同的teamName=null
。