当上传ipa到AppStore遇到
“ERROR ITMS-90056: This bundle is invalid. The Info.plist file is missing the required key: CFBundleVersion”的时候,将.ipa对应 .xcarchive 找到(可以copy到方便的文件夹或者直接在终端进入到.xcarchive所在的目录),然后执行如下命令:
find . -name 'Info.plist' -not -path "*.storyboard*" | while read file; do
echo $file;
{ plutil -p $file | grep CFBundleVersion; } || echo Failed $file;
done;
上述命令会将哪个包对应的CFBundleVersion提示出来,然后在相应的 Info.plist中增加 CFBundleVersion即可
附:.xcarchive文件查找步骤
XCode-> Window->Organizer 找到对应的Archivers包之后,右键,选择Show in Finder 即可看到;
路径
网友评论