OS X Lion and Xcode 4

I have a 2010 Mac Book Pro. I just upgraded to OS X Lion and Xcode 4.1 a few days ago (August 18 to be exact). I gave OS X Lion a 5 star review in App store because I really liked all the new features. I have been using OS X Lion without any problem until I started writing program again using Xcode 4.1. When I try to open a project and I double click a folder, Xcode goes to workspace and the spinning cursor appears as if it is reading something. After a while, the spinning stops and nothing opens. I try to open a project again but this time I just click instead of double click unti I got to the file/project that I wanted to open. The project/file open and everything was fine. Then I tried to duplicate the problem just to make sure. It did it all the time.


And then I wondered if this is only happenning on Xcode. So I tried opening a PDF file on Preview. It did the same thing. When I doubled click a folder, it read all the files in that folder and it locked up. But unlike Xcode that did nothing but a spinning cursor, Preview opened lots of files and there's a counter counting the number of documents and pages that is being opened. Theres thousands of documents and tens and thousands of pages being read. I don't even have that much PDF files in my hard drive. I think it's reading all kinds of files. I was able to stop the Preview by opening Finder, shutdown from there to force quit the Preview. We don't have to be that careful on wether to single click of double click. Do we?


When I double click the first folder there are only subfolders there too. One or two more subfolders before I get to the PDF file that I want to open. Maybe I'm a newbie but isn't it supposed to stay in that folder wether you double click or not until it finds at least one associated file? Does anyone have the same problem or am I losing my mind?

MacBook Pro, Mac OS X (10.7), Xcode 4.1

Posted on Aug 23, 2011 7:43 PM

Reply
32 replies

Aug 25, 2011 7:32 AM in response to e. developer

e. developer wrote:


4.1 is on /Developer.


3.2.6 is on /Developer 3.2.6.

On any UNIX system, using spaces in file names is usually a bad idea. It isn't wrong per se, but it is risky. UNIX developers don't always write scripts that take spaces into consideration. I wouldn't expect an uninstall on "/Developer 3.2.6" to break anything in "/Developer", but it could happen. Even Apple developers have been known to assume there will be no spaces in filenames - with catastrophic consequences.


Also, installing Xcode3 on Lion is quite difficult. I suggest just renaming "/Developer 3.2.6" to "/Xcode3" and keeping it there. It might even be a good idea to create a disk image from that folder and back that up separately (to your PC hard drive) in case you want to reinstall it on a re-built Lion machine.

Aug 25, 2011 8:52 AM in response to K T

K T wrote:


I can't predict what running the uninstall command might do to the 3.2.6 install.


Meaning use of the uninstall command to get rid of the Xcode 4 install. Not meaning use of the uninstall command to do anything w/the 3.2.6 version.


Suggest not touching the 3.2.6 install since it's working now and when you get the Preview issue resolved you can think about taking another run with Xcode 4.x, letting it occupy /Developer again.


Don't start making changes now to the 3.2.6 install, folder name, etc. It's all you've got at the moment and you don't have a backup 🙂 Sit on your hands until you can have someone help you with the Preview/Lion issue(s).

Aug 27, 2011 11:54 AM in response to K T

I finally went to Apple Store yesterday. They are very helpful there and very organize. I had to wait about 10 minutes because there's a lot of people in line asking questions.


With regards to Preview, while I was waiting in line I tried about 3 of their display and all of them are behaving the same like my MBP. When it's finally my turn, the Genius (that's their Title as oppose to Starbuck's Barista 🙂 ) saw how my Preview behaved and he tried it himself on his workstation. One important thing he pointed out is I kept saying double-click I was actually double tapping. Double clicking is when "Tap to click" System Preference is unchecked just like all of their display over there. I don't use mouse. I just use my trackpad and I prefer tapping. It is less likely to double click on a folder compare to double tapping. Anyways he told me that's the way it is. He told me to send a feedback to Apple through www.apple.com/feedback.


Speaking of double clicking on a trackpad, one day I was in the Library and there was a lady next to me with a MBP hitting that trackpad so hard clicking and double clicking.


With regards to Xcode, they don't know anything about Xcode over there. They are Geniuses not Developers. I was just thinking and I may post a separate question about this. Are the people who are having issues with Xcode 4.1 are the ones who got it for free? It makes a little bit of sense because it is not fair for those who paid for it when it was $4.99 and it is not fair for those who are paying $99/year. Just asking because I'm really frustrated about this Xcode 4.1.

Aug 29, 2011 2:48 PM in response to K T

I am a happy camper. I'm lovin' Xcode 4.1 now. I uninstall Xcode 4.1 and reinstall it again and it cleared everything up. Now I just have to avoid "double-clicking or double-tapping" on a Folder when I do File>Open to open a project. Or just totally don't use File>Open. So, File>Open is a "bad puppy" wether you use it on Xcode 4.1 or Preview.


The following is from Xcode 4 User Guide:

Open Your Xcode 3 Project in Xcode 4

Xcode 4 can open an Xcode 3 project without difficulty. You can open the project in any of the usual ways: Control-click the project and choose Xcode 4, drag the project onto the Xcode 4 icon, or choose File > Open to open the project. You can have both Xcode 3 and Xcode 4 installed on your system at the same time without conflict. You can open a project in either program, save it, then open it in the other program without invalidating the project or losing any data.


I

Aug 29, 2011 7:24 PM in response to e. developer

OK. I finally understand what you are talking about. In Lion, double-clicking a folder in the file open dialog will open all files anywhere inside the folder. This appears to happen in Preview and Xcode. I was about to file a bug report but I couldn't get it to fail. Preview was happy to open well over a thousand images and did so instantaneously. Can you experiment with Preview and see how many images you can reasonably open?

Aug 29, 2011 8:50 PM in response to etresoft

I was able to open all my family pictures with Preview without freezing. I just found out I have 1965 pictures in my Mac.


I discovered this bug when I tried to File>Open a Xcode3 projects in Xcode4 and I double-clicked my /Developer-3.2.6 folder where all my projects and Apple PDF files are stored.


I am just used to double clicking on a folder Mac or PC. What is the point of that though? Why would you wanna open all files under a folder and its subfolders? I guess I just have to change the habit of double clicking a folder and Apple must make it a rule NEVER or BE CAREFUL on double clicking a folder.


Did you notice the Open Button on file open dialog is always enabled on Xcode4 and Preview? Compare that with Open Button on Xcode3.

Aug 30, 2011 6:30 AM in response to e. developer

This is an application-level setting. Only some applications will allow it. Therefore, it was done on purpose. It is a feature, not a bug. It was probably changed in Xcode4 because Xcode4 also changed the default layout for projects. Xcode3 would create a folder with all the project files therein (include the .xcodeproj file itself). Xcode4 creates yet another folder and puts all the project files except the .xcodeproj file inside.


I don't think the Apple Developer Tools group ever opens projects form the Finder. I can assure you that Dashcode doesn't have this problem. It locks up if you open anything from the Finder.

Aug 30, 2011 3:01 PM in response to etresoft

>>>This is an application-level setting. Only some applications will allow it.


Is there a setting on Xcode 4.1 and/or Preview to disable this? If none, you can try this one, if your system doesn't fail or become unstable then I think its me and my MBP. I will stop this discussion and I will never File>Open double-click a folder on Xcode 4.1 and Preview again.


1. On Preview and/or Xcode 4.1 (NOT Finder)


2. File>Open and double click the /Developer folder.



>>>I don't think the Apple Developer Tools group ever opens projects form the Finder. I can assure you that Dashcode doesn't have this problem. It locks up if you open anything from the Finder.


This actually works for me. I don't have problem with Finder. Everything opens on Finder. Like the Xcode 4.1 User Guide stated:


You can open the project in any of the usual ways:


1. Control-click the project and choose Xcode 4,


2. Drag the project onto the Xcode 4 icon,


3. choose File > Open to open the project.


I can do all this 3 in Finder without any problem But #3 on on Xcode 4.1 and Preview with a double-click on a folder makes them unresponsive/unstable which is the main reason why I started this post.

Aug 30, 2011 5:11 PM in response to e. developer

e. developer wrote:


Is there a setting on Xcode 4.1 and/or Preview to disable this? If none, you can try this one, if your system doesn't fail or become unstable then I think its me and my MBP. I will stop this discussion and I will never File>Open double-click a folder on Xcode 4.1 and Preview again.


1. On Preview and/or Xcode 4.1 (NOT Finder)

No. It is a feature. It is so you can open one or more directories of images in Preview. I just opened one of my clip art folders in Preview with this method. It is still opening images. It opened 15,667 documents without too much trouble. Preview seems to be pretty much stuck now, but it isn't affecting the rest of my system.


2. File>Open and double click the /Developer folder.


Xcode is a completely different story. I wouldn't be surprised if double-clicking the /Developer folder locked up your machine.


This actually works for me. I don't have problem with Finder. Everything opens on Finder.


I was talking about Dashcode. It has a bug that prevents you from opening Dashcode projects in the Finder.


I can do all this 3 in Finder without any problem But #3 on on Xcode 4.1 and Preview with a double-click on a folder makes them unresponsive/unstable which is the main reason why I started this post.


I think if you just avoid double-clicking in the file open dialog while navigating in /Developer, you should be fine.

Aug 30, 2011 6:56 PM in response to etresoft

>>> I think if you just avoid double-clicking in the file open dialog while navigating in /Developer, you should be fine.


Yup, as I said in my previous post, it's just a matter of avoiding or be extra careful double-clicking a folder in the file open dialog while navigating in general (not only in /Developer) which is a habit of mine both in Mac and Windows which never gave me a problem before. So if I just want to open one particular PDF file or an image file, don't double-click. Or I can also use Finder to find that particular file so I don't have to worry about when to double click and not to double-click.



>>> No. It is a feature. It is so you can open one or more directories of images in Preview. I just opened one of my clip art folders in Preview with this method. It is still opening images. It opened 15,667 documents without too much trouble. Preview seems to be pretty much stuck now, but it isn't affecting the rest of my system.


I am new to Mac, this is my first Mac and this is the first Mac I ever touched. I use Preview mainly for PDF files. Then I notice the Preview Icon consist of camera and pictures 🙂.

Sep 17, 2011 10:21 PM in response to e. developer

I hate to pull out a thread that's several weeks old now, but I was very confused when I was reading the behavior you guys are talking about here.


From what I can see, double clicking a FOLDER in the File>Open dialog (I was testing with Preview) doesn't do anything "special." It just navigates down through the folder tree.


However, if you HIGHLIGHT a folder, and then click the Open button in the dialog, you will get all of the contents of that folder opened. This particular behavior is different from what MS Windows does with file dialogs (if you highlight a folder, I've never seen an application try to open the contents, clicking Open typically just navigates into the folder and lets you pick the file you want).


Again, double-clicking a folder item inside Preview at least, is not opening all of the contents for me. The only way I get all of the contents is if I single-click (to highlight) a folder, and then click Open.


I imagine Xcode should behave the same way. (I'm having trouble getting xcode 4.1 to install on Lion, which is how I found this thread in the first place.)


If you are doubleclicking a folder and it is *NOT* navigating into that folder, something is very wrong. Even by trying various combinations of Option/Command/Control/Shift, I can't reproduce the behavior you're describing. On my MBP with Lion, in Preview, double-clicking a single item simply opens that item. If it's a file, Preview tries to view it, if it is a Folder, the Open dialog navigates into that folder to let me see the contents.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OS X Lion and Xcode 4

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.