禁用 ios build version 自增

之前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


截屏2022-09-02 16.44.31.png

manageAppVersionAndBuildNumber 會在上傳的時候檢測是否符合規(guī)則,不符合則自動修復(fù)為符合規(guī)則的版本號
如果不需要則去掉勾選即可

在使用xcodebuild 腳本進(jìn)行打包的時候,exportoption.plist 里面添加<key>manageAppVersionAndBuildNumber</key>
<false/>
即可

參考
Xcode 13 app archiving is modifying framework plist

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容