Xcode 3.2.1 - search by characters / documents is not performed based on plugin / mystery preferences

After upgrading to Xcode 3.2.1, I had a strange problem that really killed my workflow. The problem only appears under my account (the same project opened by another user is working fine). So the gist of this question is this: "what loads Xcode from the user's directory, which might cause this problem?"

(System: Snow Leopard 10.6.1; Xcode 3.2.1 with iPhone SDK 3.1.2)

Symptoms

  • Code completion only works on characters in the current class or is already mentioned in the class. Almost useless.
  • Searching for documents / links (ie Double-clicking an option on an identifier or symbol returns this strange result): "No documentation was found for the symbol symbol name . Click here to view the symbol declaration."

As I said, since other users experience normal behavior in Xcode, this should be due to the fact that it is loaded only for my user account. I already deleted ~/Library/Preferences/com.apple.Xcode.plist , ~/Application Support/Developer, ~ / Application Support / Xcode '.

The only thing I recently installed is a mogenerator (perhaps due to a non-existent integration with xmod it was not installed, but it does not install anything in the user directory)

Update: 10.26.09 This one is really starting to kill me. I did a fresh install of OS X, then installed Xcode 3.2 from the Leopard drive, and then installed the iPhone SDK from the ADC site, and this resumed 30 minutes after starting work. I am completely at a loss. The error is most obvious when you double-click an option on a symbol (say, in the NSString class) and instead of receiving a piece of documentation, the message "Unable to determine the symbol for the current selection" appears. appears.

Update: 10.26.09 # 2 I just tried to create a new project, and the project symbols look good. So the problem is apparently local to my project. Hope it's best to get started. To demonstrate what I'm talking about, here is a screen of the problem manifested in relation to the documentation:

Screen shot of the issue

+1
source share
4 answers

Have you tried recovering your CodeSense index? Project> Change Project Settings> General>

alt text http://idisk.mac.com/cdespinosa/Public/Rebuild.png

After that, check Console.app to see if Xcode has issued any warnings. It is possible that some of your source codes cause the indexer to stop, and you do not have a valid index. Filing an error with Apple and providing a source, if possible, will help Apple fix such problems.

+3
source

This is the first thing I will try:

alt text http://img.skitch.com/20091026-ek3id5s121wqrsiu8apwm4qgir.png

Wait until he says β€œReceive” before doing anything related to the documentation.

+2
source

Given the prompts from the console:

 10/26/09 7:21:58 PM Xcode[19072] Warning: Couldn't discover the 'clang' compiler built-in search paths and preprocessor definitions for language dialect 'objective-c'. This may lead to indexing issues. Compiler: /Developer/usr/bin/clang Reason: clang version 1.0.1 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-24 exported) Target: x86_64-apple-darwin10 clang: warning: not using the clang compiler for the 'armv6' architecture 

I'm going to say that you tried to configure the iPhone device assembly to use the Clang compiler, which is not yet supported for compilation. (It works for static analysis, but not for building).

Find the compiler build settings and install it back in gcc 4.2.

+2
source

I had the same problem and I was able to work around it by:

  • Setting a goal for the iPhone simulator
  • Close and restart Xcode
  • Restore index
  • Clear and rebuild the simulator target

Perhaps this is a bug in Xcode with the iPhone device selected when you first opened the project.

0
source

Source: https://habr.com/ru/post/1311941/


All Articles