我用gitlab-ci,altool上传ipa,可以生成ipa和xcarchive,使用xcode打开xcarchive时,可以正常上传到appstore,但是使用altool时出现这个错误:<code>You must provide a CFBundleIdentifier for this请求,代码:1191
,APPL已设置,有人可以解决这个问题吗?我的 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
可以参考这个问题,但不能解决这个问题。
我在 DistributionSummary.plist 中发现,团队名称为 null,而在 Packaging.log 中,我发现 teamName=null:
分配方法(已解决)='',团队(已解决)=''> 链(11,自包含):
我试过手动和自动签,结果是一样的,teamName=null
.