You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode 4 code sens (code completion) disappeared

I want to share with you a problem I encountered using Xcode 4 GM seed build 4A278. It was shocking 😉 to get no convenient code sense (code completion) in one of my classes inherited from NSObject. My .h file had no problem whatsoever, but the .m file didn't react to any of my gestures including the control command key combination.

All other files in the project the code sensing feature worked fine. This was my first couple of hours with Xcode 4 and the project was converted from Xcode 3. In the end, the solution was to copy the code into memory, delete the .m file, add a new .m file and finally pasting the code in to the .m file. Voila, there was the code sensing. You never know, you may experience a similar problem in the future.

I think I really going to like the new Xcode 4, good job Xcode team!

MacBook Pro 17, Mac OS X (10.6.6)

Posted on Feb 7, 2011 4:39 AM

Reply
23 replies

Apr 26, 2012 7:13 AM in response to AcidStuff

I am 100% sure that it is a porblem with DerivedData.


XCode by default places DerivedData into a unique location (a folder deep hidden in Users files and with a GUID name).


How to fix: (verified)

- Not recommended but works : Deleting contents of the DerviedData (in XCode's default location) is good and works but does not seem a good solution. This porblem will pop-up over time to time. Deleting everything in default DerviedData folder also means loosing any stuff from all other projects

- Recommended and working:

- Go to XCode - Preferences -> Locations

In the first section named "Derived Data" click on "Advanced" button.

In the subsequent screen select radio option "Custom" and then in the drop down (that shows next to Custom)

select option "Realtive to Workspace"


Click "Done"


In the Locations screen (which you will be after clicking Done button) open the dropdown which shows next to the "Derived Data" and select option "Relative".


Thats it.


Enjoy

Xcode 4 code sens (code completion) disappeared

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