Menu Content/Inhalt
Home

Online

No Users Online

Login

Syndicate

feed image
No files in this project were found under the Perforce root PDF Print E-mail
Written by Dave Thorup   
Friday, 13 October 2006
If anyone has run into this error in Xcode then I feel your pain.  The error message is not very helpful at all and it turns out that it occurs in many circumstances, none of which have anything to do with the Perforce root.  For me these were the symptoms - I'd just added a new, larger hard drive to my G5 and used the Migration Assistant to transfer the contents of my old hard drive to the new one.  After I did this, I started getting the following error in my Xcode projects that use Perforce:
 
No files in this project were found under the Perforce root:
 
These projects were working just fine before so they should be working now.  There's certainly nothing wrong with the Perforce root because my new hard drive contents are pretty much a clone of my old drive.  I've just been putting up with this for the last little while using P4V exclusively but finally I was fed up.  I started googling for solutions and the most common one seemed to be deleting your Perforce password in the Keychain Access application.  I tried this and it still didn't work, same error.  Then I tried running p4 info on the command-line and found that:
 
tcsh: /usr/local/bin/p4: Permission denied.
 
Doh!  That's a pretty stupid problem.  So I went into /usr/local/bin and sure enough, when I had reinstalled p4 I failed to set the permissions properly and the binary was not executable.  I corrected this by chmoding it to 755 and then fired up Xcode again hoping for it to work.  But no, I still got the same problem.  So this time I tried changing the P4CLIENT, user name and password settings of the project to garbage values. Then quit and reopen the project - same error.  Then I went into Keychain Access again and deleted the entries there (there was my original one and the new garbage one).  Again, quit and reopen the project and this time I was greeted with a Perforce error, the usual error that it gives you when you try to login with the wrong user name and password - this gave me some hope of success.  I went to the Perforce settings for the project and corrected the garbage that I had entered before and finally it started working.
 
I then tried openning some of my other projects that had the same problem and they all are working now (no Keychain funny business needed).  The moral of the story is that this is a pretty weird error message that can mean any number of things.  It could be that your p4 binary has messed up permissions or that the keychain entry for Xcode is messed up or a combination of these.  If anyone else runs into this problem then I hope this helps.
 

Related Items:


Add as favourites (112) | Quote this article on your site | Views: 1231

Comments (1)
RSS comments
1. 23-01-2008 00:57
 
Just to help anyone else who gets this random error :-) 
 
I had this problem and it turned out to be because my Perforce server was set to use 'ticket' authentication rather than 'password' based, and Xcode doesn't suport this. 
 
If your admin wishes, they can use 'p4 counter -f security 2' to drop back to the less secure method, then restart the p4 server. 
 
It might be possible to add support by writing a p4 wrapper script, which would do the ticket login and then proceed with the command. You'd point Xcode at the wrapper rather than the p4 executable. (this is how I diagnosed the problem in the first place!)
Guest
 
Kayamon

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Personal verbal attacks will be deleted.
  • Please don't use comments to plug your web site. Such material will be removed.
  • Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
  • Keep in mind that the above process only applies if you simply entered the wrong security code.
Name:
E-mail
Homepage
Title:
BBCode:Web AddressEmail AddressBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



Code:* Code
I wish to be contacted by email regarding additional comments

Powered by AkoComment Tweaked Special Edition v.1.4.3

Last Updated ( Friday, 13 October 2006 )
 
< Prev   Next >
designed by www.madeyourweb.com | joomla templates