禁用 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.}

近期发现,在使用相同build number 的的ipa包上传,xcode 会自动修改build version
有些场景下,这个是不符合我们的预期的。
例如我们需要手动指定build number,并不希望xcode 介入修改build number


截屏2022-09-02 16.44.31.png

manageAppVersionAndBuildNumber 会在上传的时候检测是否符合规则,不符合则自动修复为符合规则的版本号
如果不需要则去掉勾选即可

在使用xcodebuild 脚本进行打包的时候,exportoption.plist 里面添加<key>manageAppVersionAndBuildNumber</key>
<false/>
即可

参考
Xcode 13 app archiving is modifying framework plist

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容