您可以在 Xcode 中创建每用户项目设置吗?

发布于 2024-07-11 20:22:33 字数 283 浏览 5 评论 0原文

我正在协作开发一个 iPhone 应用程序,并将项目文件(.xcodeproj 目录)签入源代码管理。 一项重要的设置是“代码签名身份”,它指定用于对应用程序进行签名的证书,以便它可以在 iPhone 上运行。

项目中的每个开发人员都有自己的代码签名身份,因此每当有人对项目进行更改时,他的代码签名身份都会保存到项目设置中,然后其他人都会继承该更改。 然后他们必须将其更改为 CSI,然后才能继续。

有没有办法将代码签名身份保存在某些本地每用户项目文件中,而不会签入源代码管理?

I'm collaborating on an iPhone application, with the project files (.xcodeproj directory) checked into source control. One important setting is the "Code Signing Identity", which specifies the certificates to use to sign the application in order that it can run on the iPhone.

Each developer on the project has his own Code Signing Identity, so whenever anyone makes a change to the project, his Code Signing Identity gets saved into the project settings, and then everyone else inherits that change. They then have to change that to their CSI before they can continue.

Is there a way to have the Code Signing Identity saved in some local per-user project file that doesn't get checked into source control?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

挽清梦 2024-07-18 20:22:33

您可以将 Xcode 项目基于 .xcconfig 文件,然后让每个开发人员使用自己的 .xcconfig 文件并将身份设置保留在其中。

You could base the Xcode project on an .xcconfig file, then make each developer use their own .xcconfig file and keep the identity setting in there.

白馒头 2024-07-18 20:22:33

或者让你的源代码控制系统忽略包含签名的文件,在 git 中你可以创建一个名为 .gitignore 的文件,你正在使用的文件可能有类似的东西。 这意味着即使您进行了更改,更改也不会被镜像。

Either that or have your source control system ignore the file that contains the signature, in git you can create a file called .gitignore, theres probably a similar thing for what you are using. It means even though you've changed it the change won't get mirrored.

像你 2024-07-18 20:22:33

我通过制作不同的版本来解决这个问题。 名为“Dev - Rob”的设置包含我的设置,名为“Dev - [其他人的名字]”的设置包含其他人的设置。

我们还使用它来构建“发布 - Beta”和“发布 - AppStore”等,适用于我们拥有不同签名配置的所有情况。

I worked around this by making different builds. The one named "Dev - Rob" had my settings in it, and the one named "Dev - [Other Guy's Name]" had Other Guy's settings.

We also used this to make builds like "Release - Beta" and "Release - AppStore" etc., for all situations where we'd have different signing configurations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文