So I have a .gitignore
created, which I have basic files included in there, but when it comes to a Swift and .xcodeproj
project..
Which one of these files are the only ones that I need inside Github?
CodePudding user response:
Actually, you need both .pbxproj and .xcworkspace, however, it depends:
.pbxproj
file contains metadata, file references, configuration... which use to execute/build the project..xcworkspace
contains and manages subprojects. A common scenario is using cocoapods. If you're developing a small project that's don't need to depend on any 3rd parties, you don't have to create xcworkspace.xcuserdata
folder is safe to ignore. It contains some temporary info like user state, files opened, folders opened.