Jayr Parro

Xcode Project Layout

In keeping my Xcode project organize, I’m following this structure:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/<ProjectName>
    /Shared
        /Application      # App delegate and related files
        /Controllers      # Base view controllers
        /Models           # Models, Core Data schema etc
        /Views            # Shared views
        /Library          # Anything that falls outside of the MVC pattern
        /Support          # Categories and helpers
    /iPhone
        ...               # Same structure as 'Shared' but with interface specific classes
    /iPad
        ...
    /Supporting files    # Info.plist, Prefix headers, main.m
    /Resources           # Images, videos, .strings files, 
/Vendors                 # 3rd party dependencies not managed by CocoaPods
  

If you’ve got some easier & better structure to organize the Xcode project files, let me know in the comments below. Thanks!


References:

http://stuartkhall.com/posts/ios-development-tips-i-would-want-if-i-was-starting-out-today

Comments