简体   繁体   English

Xcode 未归档到指定的版本号

[英]Xcode is not archiving to the specified version number

This is what my Xcode screen looks like before archiving这是存档前我的 Xcode 屏幕的样子

在此处输入图像描述

This is what shows up in the Organizer after archiving:这是存档后在管理器中显示的内容:

在此处输入图像描述

I recently had done an upgrade to my Mac which I think was because of iOS 14. Any idea what could be going on here?我最近对我的 Mac 进行了升级,我认为这是因为 iOS 14。知道这里会发生什么吗?

I don't know why, but I also had the problem after the xcode 14 version update.不知道为什么,在xcode 14版本更新后我也遇到了这个问题。

In my case, it was solved by modifying the version in "Info" tap without changing the version in "General" tap on xcode setting.在我的情况下,它是通过修改“信息”点击中的版本而不更改 xcode 设置上的“常规”点击中的版本来解决的。

. .

<Custom iOS Target properties on "Info" tap> <“信息”点击上的自定义 iOS 目标属性>

  • Bundle version string (short) <<< version捆绑版本字符串(短)<<<版本
  • Bundle version <<< build number捆绑版本 <<< 内部版本号

open info.plist to source打开 info.plist 到源

and change this并改变这个

<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>

You might have a build settings named GENERATE_INFOPLIST_FILE is set to YES .您可能将名为GENERATE_INFOPLIST_FILE的构建设置设置为YES This can cause your current Info.plist file overriden by current Xcode Build settings, try to set GENERATE_INFOPLIST_FILE to NO .这可能会导致您当前的 Info.plist 文件被当前的 Xcode 构建设置覆盖,请尝试将GENERATE_INFOPLIST_FILE设置为NO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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