0

I use gitlab-ci, altool to upload ipa, I can generate ipa and xcarchive, and when use xcode open xcarchive, can upload to appstore normally, but when use altool, this error happens:You must supply a CFBundleIdentifier for this request, code: 1191, the APPL has set, can some one resolve this issue?? My xcode version is 9.4.1

the export shell is:

- 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

the upload shell:

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

can refer this question, but can not resolve this issue.

I found in DistributionSummary.plist, the team name is null, and in Packaging.log, I found teamName=null:

distributionMethod(resolved)='', team(resolved)=''>
    Chain (11, self inclusive):

I tried manual and automatic sign, the result is the same, teamName=null.

General Failure
  • 2,421
  • 4
  • 23
  • 49

0 Answers0