大型 iPhone/iPad 项目的目录布局/结构

发布于 2024-11-28 17:00:57 字数 439 浏览 1 评论 0原文

这听起来可能是一个有点愚蠢的问题,但是你们中有人有任何“首选”方法来组织大型 iPhone/iPad 项目吗?更具体地说,任何类型的严格目录/布局结构?

我知道这个问题之前已经在 Xcode 项目的上下文中被问过,但我想知道组织和保持整个项目干净整洁的最佳方法是什么。这包括 Xcode 不直接使用但以其他方式存在的其他资产,因为它们用于生成包含在 Xcode 中的资产(即 Logic Pro 轨道、Cinema 4D 场景、Modo 中建模的网格、PSD 和 AI 源文件) , ETC...)。

我们的一些较大的项目变得有点杂乱且难以理解,这就是我问的原因。我想实现某种严格的目录结构,所有内容最终都会遵守(除了已经位于源代码管理中的内容之外)。我们处理 Xcode 用来生成最终游戏的各种资产的多个程序 - 因此不幸的是,这并不像将所有内容都扔到 Xcode 项目文件夹中并退出那么简单。

干杯, -CMPX

This may sound like a bit of a silly question- but do any of you have any "preferred" methods of keeping a large iPhone/iPad project organized? More specifically, any type of strict directory/layout structures?

I know this question has been asked before in the context of something like an Xcode project- but what I'm wondering is what would be the best way to organize and keep an -entire- project clean and tidy. This includes other assets that are not directly used by Xcode, but otherwise exist as they are used to generate the assets that get included in Xcode (ie, Logic Pro tracks, Cinema 4D scenes, meshes modelled up in Modo, PSD and AI source files, etc...).

Some of our larger projects are getting a bit disorganized and difficult to make sense of, which is why I'm asking. I want to implement some sort of strict directory structure that everything will eventually adhere to (apart from the things already sitting in source control). We deal with multiple programs for the various assets that get used by Xcode to produce the final game- so it isn't unfortunately as simple as just tossing everything in the Xcode project folder and calling it quits.

Cheers,
-CMPX

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

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

发布评论

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

评论(3

神回复 2024-12-05 17:00:57

我喜欢遵循受 Rails 启发的布局:

  • App(AppDelegate 等)
    • 控制器(所有控制器)
    • 观看次数(您的所有 XIB)
    • 模型(您的所有模型)
  • 库(所有 Apple 和第 3 方内容)
  • 图像(静态图像)
  • HTML(用于本地 Web 视图和内容)
  • ...

对我有用:)

I like to follow a Rails inspired layout:

  • App (AppDelegate and stuff)
    • Controllers (All the controllers)
    • Views (All your XIB's)
    • Models (All your models)
  • Libraries (all Apple and 3rd party stuff)
  • Images (static images)
  • HTML (for local webviews and stuff)
  • ...

Works for me :)

[浮城] 2024-12-05 17:00:57

对我来说,我为 Xcode 项目保留了两个单独的文件夹 1 以及所有最终资产。 Xcode 项目文件夹外部的另一个文件夹是艺术资源文件夹,我在其中创建所有图形,然后将它们导入到我的 Xcode 项目中。

在 Xcode 项目中,我为不同类型的资源(例如类和图像、音频文件、纹理等)创建单独的文件夹。

For me, I keep two separate folders 1 for the Xcode project with all the final assets. The other folder external to the Xcode project folder is the art asset folder where I create all the graphics and later import them into my Xcode project.

In the Xcode project, I create separate folders for different types of assets such as classes and images, audio files, textures and so on.

情绪 2024-12-05 17:00:57

我们发现,苹果默认建议的模型/视图/控制器(在不同的文件夹中)的分离是不够的。我们试图保持以结构工作流程/功能为导向,但扁平化项目的结构,以保持应用程序的所有层可见,以便进一步重用代码。所有 XIB 文件通常与代码文件保存在同一位置,以便于修改解决方案。所有资源都按顶层的类型和底层的工作流程/功能进行划分。

We found that separation as Apple suggests by default on models / views/ controllers (in different folders) is not sufficient. We are trying to keep structure workflow / functionality oriented but flattening the structure of a project to keep all layers of an app visible for further code reuse. All XIB files usually kept in the same place with code files to make it simple to modify solution. All resources are divided by types at the top level and by workflows / functionality underneath.

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