iOS 应用程序提交 - 存档不包含 info.plist [英] iOS app submission - archive does not contain an info.plist

查看:27
本文介绍了iOS 应用程序提交 - 存档不包含 info.plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我收到的旧应用程序向应用程序商店提交存档.我不断收到两个错误 CFBundleShortVersionString 键必须在 plist 中,更令人不安的是包不包含 plist"

I am trying to submit an archive to the app store with an old app i was given. I keep receiving two errors CFBundleShortVersionString key must be in the plist and more troubling 'the package does not contain a plist'

这两个项目都存在于应用中.我将 CFBundleShortVersionString 键添加到 plist 中,并且 plist 文件绝对存在,否则我永远无法构建它.这里有什么问题?

Both of these items exist in the app. I added the CFBundleShortVersionString key to the plist, and the plist file most definitely exists or I could never build it. What is the issue here?

推荐答案

如果上传工具没有找到您的 .plist 文件,这就是它认为它不包含 CFBundleShortVersionString 键的原因.出于某种原因,应用程序可以在没有任何 plist 文件的情况下进行编译!

If the upload tool isn't finding your .plist file, that would be why it doesn't think it contains a CFBundleShortVersionString key. For some reason, apps can compile without any plist file at all!

首先,确保您的 plist 文件存在于您的项目导航器中,并且它没有以红色突出显示.(如果它已在光盘上被删除或重命名,无论出于何种原因)

First, make sure that your plist file exists in your project navigator, and that it's not highlighted in red. (in case it has been removed or renamed on disc, for whatever reason)

在您的 Xcode 项目中,选择您的应用程序的目标,然后选择构建设置"选项卡.搜索plist"以过滤结果.在Packaging"下,检查Info.plist"的值.这应该是您的 plist 文件的名称,相对于您的 Xcode 项目.例如,MyApp/MyApp-Info.plist".如果为空,请将其更改为您的 plist 文件的名称并重新构建.

In your project in Xcode, select your app's target, and then select the "Build Settings" tab. Search for "plist" to filter the results. Under "Packaging", check the value of "Info.plist". This should be the name of your plist file, relative to your Xcode project. For example, "MyApp/MyApp-Info.plist". If it is blank, change it to the name of your plist file and rebuild.

这篇关于iOS 应用程序提交 - 存档不包含 info.plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆