Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Xcode xcshareddata directory?

Tags:

xcode

xcode4.5

My project now has a project.xcworkspace/xcshareddata directory.

What does Xcode store in the project.xcworkspace/xcshareddata directory?

like image 341
Joshcodes Avatar asked Oct 11 '13 15:10

Joshcodes


People also ask

What is Xcshareddata?

The xcshareddata directory is primarily used to store shared settings (as opposed to xcuserdata which is used for settings which are not shared a.k.a. user specific).

Should I commit Xcshareddata?

When adding a package in a project, a new swiftpm folder is created under xcshareddata , this should be committed as it contains the resolved versions of our dependencies (stored in Package.


1 Answers

The xcshareddata directory is primarily used to store shared settings (as opposed to xcuserdata which is used for settings which are not shared a.k.a. user specific). The following are some items currently stored in 'xcshareddata`:

  • Schemes: schemes can be shared in Xcode with the "Scheme manager" which can be accessed via the "Product" > "Scheme" > "Manage Schemes" menu items. Schemes have a "share" option.
  • Breakpoints:
    1.) In the breakpoint navigator, Control-click the breakpoint.
    2.) From the shortcut menu, choose Share Breakpoint.
  • xccheckout: A file that contains metadata about what repositories are used in a workspace. In the case of workspaces that have multiple projects from different repositories Xcode uses an .xccheckout file to know what all of the components that make up a workspace are and where to get them.
like image 70
Joshcodes Avatar answered Sep 22 '22 13:09

Joshcodes