Xcode-Project 文件 .pbxproj - 如何在版本控制中处理它?
在我们的团队中,我们使用 Subversion 作为 iOS 项目的 VC 系统。问题是,每当其中一个用户检查 .pbxproj 文件时,其他用户的 CODE_SIGN_IDENTITY 和 PROVISIONING_PROFILE 也会更新为错误的值。
我们配置有问题吗?有可能解决这个问题吗?例如变量或类似的东西?这样项目文件包含
"ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = NO;
CODE_SIGN_IDENTITY = {first_variable_here-same_for_all_developers};
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = {second_variable_here-same-for-all-developers};
COPY_PHASE_STRIP = NO;
那就太好了...谢谢!
In our team, we're using Subversion as VC-system for our iOS-projects. The problem is, that whenever one of use checks in the .pbxproj-file, the others get the CODE_SIGN_IDENTITY and PROVISIONING_PROFILE also updated with wrong values.
Are we configuring something wrong? Is there a possibility to fix this? E.g. variables or something like that? So that the project file contains
"ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = NO;
CODE_SIGN_IDENTITY = {first_variable_here-same_for_all_developers};
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = {second_variable_here-same-for-all-developers};
COPY_PHASE_STRIP = NO;
That would be really great... thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pbxproj 文件维护一些配置以及对添加到项目中的新目标和文件的引用。
因此,您不能将其放入 gitignore 中,因为当您向项目添加新目标或新文件时,它会产生问题。正如我的情况一样 - 一些文件在 xcode 中不可见。但它们在取景器中可见
因此,我们处理该文件的方法如下:
希望对您有帮助。
The pbxproj file maintains the some configuration and references to the new targets and files that are added to the projects.
So, you cannot put it in in the git ignore, as it will create a problem when you add new targets or new files to your project. As it happened in my case - Some files not visible in xcode. But they are visible in finder
So, the approach we followed to handle this file is as follows
Hope it helps you.