之前xcode 在上傳相同build number 的的ipa包,xcode 會提示如下錯誤
Error Domain=ITunesSoftwareServiceErrorDomain Code=-19208 "error: App Store Connect Operation Error. Metadata/Info.plist Mismatch. The value for bundle_version in the metadata.xml file does not match the value for CFBundleVersion in xxx [Payload/xxx.app]. With error code STATE_ERROR.VALIDATION_ERROR.90345 for id 906e582b-db57-41bf-a3dd-4463d20e6d4c." UserInfo={NSLocalizedDescription=error: App Store Connect Operation Error. Metadata/Info.plist Mismatch. The value for bundle_version in the metadata.xml file does not match the value for CFBundleVersion in xxx [Payload/xxx.app]. With error code STATE_ERROR.VALIDATION_ERROR.90345 for id 906e582b-db57-41bf-a3dd-4463d20e6d4c.}
近期發(fā)現(xiàn),在使用相同build number 的的ipa包上傳,xcode 會自動修改build version
有些場景下,這個是不符合我們的預(yù)期的。
例如我們需要手動指定build number,并不希望xcode 介入修改build number

manageAppVersionAndBuildNumber 會在上傳的時候檢測是否符合規(guī)則,不符合則自動修復(fù)為符合規(guī)則的版本號
如果不需要則去掉勾選即可
在使用xcodebuild 腳本進(jìn)行打包的時候,exportoption.plist 里面添加<key>manageAppVersionAndBuildNumber</key>
<false/>
即可