user2707185
user2707185

Reputation:

Can't find the .pbxproj file in Xcode

I have a problem regarding my .pbxproj file. I worked on a Xcode project on one computer and then I cloned it using SourceTree on another computer. But now I can't open the project since the project.pbxproj file is completely gone. I haven't added it to my .gitignore file and when I worked on the project on the other computer I have never had any problems.

So why have it disappeared and is there a way to get it back? I can't find it at all in my source code. Not even if I revert back to my initial commit. Can it be that when I pushed the projects source code to bit bucket my .pbxproj file wasn't committed?

Is there a way to create a new .pbxproj file? I don't have the computer with the working project here, it's in my office.

Edit: Including my .gitignore file

# OS X Finder
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
#Pods/

Upvotes: 5

Views: 3257

Answers (2)

jyz
jyz

Reputation: 41

  1. $defaults write com.apple.finder AppleShowAllFiles -bool true
  2. Show in finder
  3. Open the circled file and delete the row contains project.pbxproj enter image description here

Upvotes: -1

user2707185
user2707185

Reputation:

Ok so this was a major D'oh! moment and my own misstake. I found that I had a global .gitignore file on the computer. And in that file I for some reson had added the project.pbxproj

So now it works. Stupid stupid stupid...

Upvotes: 3

Related Questions