简体   繁体   中英

Receiving a very strange error stating “The Info.plist in the package must contain the CFBundleShortVersionString key.”

When I built and compressed my app for submitting for Apple's review, I am displayed with the warning:

The Info.plist in the package must contain the CFBundleShortVersionString key.

This is not contained in my Info.plist. Any help on how I can fix this?

The CFBundleShortVersionString in your Info.plist identifies the version string for your app, such as 1.0 or 3.5.1. As your error implies, it is required in the Info.plist.

Simply open your project's Info.plist, choose Add Row, and enter CFBundleShortVersionString , which may change to "Bundle versions string, short". Set the type to String and the value to a version identifier for your app; use 1.0 if it's the first version. Now re-archive.

Info.plist条目

You should also be able to change the version string by going to the General tab of your target in Xcode. 目标>常规>版本

Swift3

Add Bundle versions string, short to info.plist like this Image:

在此处输入图片说明

I had a similar problem and it turns out that Xcode wiped out the build number in an app extension I created. If you have any app extensions make sure that the version and build number are present.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM