ios 更改版本号并在 Xcode 5 中构建

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18892151/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 01:22:25  来源:igfitidea点击:

Change Version number and build in Xcode 5

iphoneiosxcode5

提问by TechFanatic

I have upgraded my Xcode to Xcode 5. From where can I change the version and build number which are now not visible in Target Summary?

我已将我的 Xcode 升级到 Xcode 5。我可以从哪里更改现在在目标摘要中不可见的版本和内部版本号?

enter image description here

在此处输入图片说明

回答by Daniel

Select your project on the left. Then under target, select the target.

在左侧选择您的项目。然后在目标下,选择目标。

Note it's in the General tab.

请注意,它位于“常规”选项卡中。

enter image description here

在此处输入图片说明

回答by rckoenes

In the screenshot you posted your target is a library, which do not have the build/version number.

在您发布的屏幕截图中,您的目标是一个库,它没有构建/版本号。

Select your target and then go to the Generaltab. Then Identityyou can change the Version ad the build

选择您的目标,然后转到General选项卡。然后Identity您可以更改版本广告构建

Or open the Infotab and then Custom iOS Target Properties, here your can change the build and version number.

或者打开Info选项卡,然后Custom iOS Target Properties,您可以在此处更改版本号和版本号。

回答by Hemant Singh Rathore

In left pane select project name - > select target -> General choose version and Build. make sure target is selected , if project setting is selected you won't able to see desired options

在左侧窗格中选择项目名称 -> 选择目标 -> 常规选择版本和构建。确保选择了目标,如果选择了项目设置,您将无法看到所需的选项

General

一般的

回答by incmiko

Go to your target, there you can modify them:

转到您的目标,在那里您可以修改它们:

  • in General: under Identity: under your Bundel identifier: version and build
  • in Info: under Custom iOS Target Properties: Bundel version
  • 一般:在身份下:在您的 Bundel 标识符下:版本和构建
  • 信息:在自定义 iOS 目标属性下:捆绑版本

回答by markeissler

You might want to check out a new tool I've been developing called Xcodebump. It can handle updating both CFBundleShortVersionString and CFBundleVersion. As a final step it will also checkin to git and tag the commit to match up with those CFBundle values.

您可能想查看我一直在开发的名为 Xcodebump 的新工具。它可以处理更新 CFBundleShortVersionString 和 CFBundleVersion。作为最后一步,它还将签入 git 并标记提交以匹配那些 CFBundle 值。

The Xcodebump projectis located here:

Xcodebump项目位于:

https://github.com/markeissler/Xcodebump

https://github.com/markeissler/Xcodebump

I developed Xcodebump because agvtool has become a bit crusty and this topic comes up on Stackoverflow quite often.

我开发了 Xcodebump 是因为 agvtool 变得有点棘手,这个话题经常出现在 Stackoverflow 上。