软件:Xcode Version 9.3
打包新版本程序上传到iTunes Connect,都没有问题。
但是在如图查看构建版本时,

出现了无语的错误,而且也没有收到错误信息的邮件:

在网上查找了,大多数都是删除第三方库中的.plist文件,我删除后上传还是出现上图的错误。T^T
原因:升级mac系统到了High sierra(10.13,目前还是测试版,并没有正式版,全新的文件系统 APFS (Apple File System))发现没有这个问题,于是乎,所以给出这种解决方式的作者认为是 APFS的bug.
1、先Archive成功

右键,选择Show in Finder到打包的目录中,选中打包文件右键显示包内容。
2、显示包内容:

3、打开终端,cd 到显示的包的目录文件下面;
4、然后在终端下面执行下面这条命令:
$ find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323
5、执行后,在上传到iTunes Connect就可以成功构建。
网友评论